PNPACPI sets pnpdev->dev.archdata
Subsystems (3)
PATCH 1/1 PNPACPI sets pnpdev->dev.archdata
Teach PNPACPI how to hook up its devices to their ACPI nodes, so that pnpdev->dev.archdata points to the parallel acpi device node. Previously this only worked for PCI, leaving a notable hole.
Export "acpi_bus_type" so this can work.
Remove some extraneous whitespace.
Signed-off-by David Brownell <[email protected]>
include/acpi/acpi_bus.h +3 -0
@@ -303,6 +303,9 @@ struct acpi_device {#define to_acpi_device (d) container_of(d, struct acpi_device, dev)#define to_acpi_driver (d) container_of(d, struct acpi_driver, drv) +/* acpi_device.dev.bus == &acpi_bus_type */ +extern struct bus_type acpi_bus_type; +/* * Events * ------
drivers/acpi/scan.c +1 -1
@@ -302,7 +302,7 @@ static void acpi_device_shutdown(structreturn ; } -static struct bus_type acpi_bus_type = { +struct bus_type acpi_bus_type = { .name ="acpi" , .suspend = acpi_device_suspend, .resume = acpi_device_resume,
drivers/pnp/pnpacpi/core.c +45 -8
110 lines not on this page · raw message