Move the ALi M5123 initialization to the end of the M1543(C) initialization.

This commit is contained in:
OBattler
2022-07-23 16:35:24 +02:00
parent b8005eeb20
commit 25362803f6

View File

@@ -1548,9 +1548,6 @@ ali1543_init(const device_t *info)
/* USB */
dev->usb = device_add(&usb_device);
/* Super I/O chip */
device_add(&ali5123_device);
dev->type = info->local & 0xff;
dev->offset = (info->local >> 8) & 0x7f;
if (info->local & 0x8000)
@@ -1565,6 +1562,9 @@ ali1543_init(const device_t *info)
pci_enable_mirq(5);
pci_enable_mirq(6);
/* Super I/O chip */
device_add(&ali5123_device);
ali1543_reset(dev);
return dev;