diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-08 03:28:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:08 -0400 |
commit | 55955aad7c09e4d93029d0cf2d360b41891f2fe4 (patch) | |
tree | 7d7bbb9d1e06c833fcc8d110db1f278b026aae80 /include/acpi/acpi_bus.h | |
parent | 98701d1b0fe98b477b53df89114e6862547f8107 (diff) |
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 <dbrownell@users.sourceforge.net>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 16c3c441256e..9cfd5b1a48eb 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -303,6 +303,9 @@ struct acpi_device { | |||
303 | #define to_acpi_device(d) container_of(d, struct acpi_device, dev) | 303 | #define to_acpi_device(d) container_of(d, struct acpi_device, dev) |
304 | #define to_acpi_driver(d) container_of(d, struct acpi_driver, drv) | 304 | #define to_acpi_driver(d) container_of(d, struct acpi_driver, drv) |
305 | 305 | ||
306 | /* acpi_device.dev.bus == &acpi_bus_type */ | ||
307 | extern struct bus_type acpi_bus_type; | ||
308 | |||
306 | /* | 309 | /* |
307 | * Events | 310 | * Events |
308 | * ------ | 311 | * ------ |