* [PATCH] ACPI: no more users of acpi_is_child_device
@ 2008-08-29 22:01 Alexander Beregalov
0 siblings, 0 replies; only message in thread
From: Alexander Beregalov @ 2008-08-29 22:01 UTC (permalink / raw)
To: ak, lenb, linux-acpi, yakui.zhao, shaohua.li, rui.zhang
The only use of acpi_is_child_device() was removed by
ba2058572ac27e3a8a0ca570dab0cf70b210cdb1
(ACPI : Load device driver according to the status of acpi device)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
drivers/acpi/scan.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 78e164f..ca23f10 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1131,20 +1131,6 @@ static int acpi_bus_remove(struct acpi_device *dev, int rmdevice)
}
static int
-acpi_is_child_device(struct acpi_device *device,
- int (*matcher)(struct acpi_device *))
-{
- int result = -ENODEV;
-
- do {
- if (ACPI_SUCCESS(matcher(device)))
- return AE_OK;
- } while ((device = device->parent));
-
- return result;
-}
-
-static int
acpi_add_single_object(struct acpi_device **child,
struct acpi_device *parent, acpi_handle handle, int type,
struct acpi_bus_ops *ops)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-29 22:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 22:01 [PATCH] ACPI: no more users of acpi_is_child_device Alexander Beregalov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).