Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3195461
acpi.diff
jkim (Jung-uk Kim)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
jkim
Feb 21 2018, 10:07 PM
2018-02-21 22:07:30 (UTC+0)
Size
996 B
Referenced Files
None
Subscribers
None
acpi.diff
View Options
Index: sys/amd64/acpica/acpi_machdep.c
===================================================================
--- sys/amd64/acpica/acpi_machdep.c (revision 329748)
+++ sys/amd64/acpica/acpi_machdep.c (working copy)
@@ -63,6 +63,7 @@ acpi_machdep_init(device_t dev)
sc = device_get_softc(dev);
acpi_apm_init(sc);
+ acpi_install_wakeup_handler(sc);
if (intr_model != ACPI_INTR_PIC)
acpi_SetIntrModel(intr_model);
@@ -349,20 +350,13 @@ nexus_acpi_probe(device_t dev)
static int
nexus_acpi_attach(device_t dev)
{
- device_t acpi_dev;
- int error;
nexus_init_resources();
bus_generic_probe(dev);
- acpi_dev = BUS_ADD_CHILD(dev, 10, "acpi", 0);
- if (acpi_dev == NULL)
+ if (BUS_ADD_CHILD(dev, 10, "acpi", 0) == NULL)
panic("failed to add acpi0 device");
- error = bus_generic_attach(dev);
- if (error == 0)
- acpi_install_wakeup_handler(device_get_softc(acpi_dev));
-
- return (error);
+ return (bus_generic_attach(dev));
}
static device_method_t nexus_acpi_methods[] = {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1298450
Default Alt Text
acpi.diff (996 B)
Attached To
Mode
D14400: acpi/amd64: fix attach of wakeup handler
Attached
Detach File
Event Timeline
Log In to Comment