Sync with i386 - get the softc via the devclass rather than caching the dev
This commit is contained in:
parent
deefc3c4f5
commit
e88022749d
@ -40,8 +40,7 @@ acpi_machdep_init(device_t dev)
|
||||
{
|
||||
struct acpi_softc *sc;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
sc = devclass_get_softc(devclass_find("acpi"), 0);
|
||||
acpi_install_wakeup_handler(sc);
|
||||
|
||||
if (intr_model != ACPI_INTR_PIC)
|
||||
|
Loading…
Reference in New Issue
Block a user