aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-03 16:35:44 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-04 08:23:40 -0500
commit924144818cf0edc5d9d70d3a44e7cbbf4544796c (patch)
treec58abdcb5a82d4498a856b4e53607857b35926a6 /include/acpi
parent53540098b23c3884b4a0b4f220b9d977bc496af3 (diff)
ACPI / glue: Drop .find_bridge() callback from struct acpi_bus_type
After PCI and USB have stopped using the .find_bridge() callback in struct acpi_bus_type, the only remaining user of it is SATA, but SATA only pretends to be a user, because it points that callback to a stub always returning -ENODEV. For this reason, drop the SATA's dummy .find_bridge() callback and remove .find_bridge(), which is not used any more, from struct acpi_bus_type entirely. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Yinghai Lu <yinghai@kernel.org> Acked-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_bus.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index c751d7de3a5f..22ba56e834e2 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -439,10 +439,7 @@ struct acpi_bus_type {
439 struct list_head list; 439 struct list_head list;
440 const char *name; 440 const char *name;
441 bool (*match)(struct device *dev); 441 bool (*match)(struct device *dev);
442 /* For general devices under the bus */
443 int (*find_device) (struct device *, acpi_handle *); 442 int (*find_device) (struct device *, acpi_handle *);
444 /* For bridges, such as PCI root bridge, IDE controller */
445 int (*find_bridge) (struct device *, acpi_handle *);
446 void (*setup)(struct device *); 443 void (*setup)(struct device *);
447 void (*cleanup)(struct device *); 444 void (*cleanup)(struct device *);
448}; 445};