]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ACPI: remove unused acpi_is_child_device()
authorLen Brown <len.brown@intel.com>
Sat, 11 Oct 2008 05:13:12 +0000 (01:13 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 22 Oct 2008 22:01:12 +0000 (18:01 -0400)
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c

index 89c112ef9e14b701afdaea76d59f141fdc8c47a9..91fed422bae8eca882c27ac863d0eafdc35d085a 100644 (file)
@@ -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,