Sync with i386 - get the softc via the devclass rather than caching the dev

This commit is contained in:
Peter Wemm 2004-08-16 23:10:18 +00:00
parent deefc3c4f5
commit e88022749d

View File

@ -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)