From: Len Brown Date: Sat, 11 Oct 2008 05:13:12 +0000 (-0400) Subject: ACPI: remove unused acpi_is_child_device() X-Git-Tag: v2.6.28-rc1~26^2~27^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ea5c8af9b1241a10dc4ba6cd2d2362c179884b74;p=linux-2.6-omap-h63xx.git ACPI: remove unused acpi_is_child_device() Signed-off-by: Len Brown --- diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 89c112ef9e1..91fed422bae 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1160,20 +1160,6 @@ static int acpi_bus_remove(struct acpi_device *dev, int rmdevice) return 0; } -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,