diff options
author | Len Brown <len.brown@intel.com> | 2008-10-11 01:13:12 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-22 18:01:12 -0400 |
commit | ea5c8af9b1241a10dc4ba6cd2d2362c179884b74 (patch) | |
tree | 7c1ddde3e96ee68cd06291c88bd3bc17de6911aa /drivers | |
parent | 39a0ad871000d2a016a4fa113a6e53d22aabf25d (diff) |
ACPI: remove unused acpi_is_child_device()
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 89c112ef9e14..91fed422bae8 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1161,20 +1161,6 @@ static int acpi_bus_remove(struct acpi_device *dev, int rmdevice) | |||
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | static int | 1163 | static int |
1164 | acpi_is_child_device(struct acpi_device *device, | ||
1165 | int (*matcher)(struct acpi_device *)) | ||
1166 | { | ||
1167 | int result = -ENODEV; | ||
1168 | |||
1169 | do { | ||
1170 | if (ACPI_SUCCESS(matcher(device))) | ||
1171 | return AE_OK; | ||
1172 | } while ((device = device->parent)); | ||
1173 | |||
1174 | return result; | ||
1175 | } | ||
1176 | |||
1177 | static int | ||
1178 | acpi_add_single_object(struct acpi_device **child, | 1164 | acpi_add_single_object(struct acpi_device **child, |
1179 | struct acpi_device *parent, acpi_handle handle, int type, | 1165 | struct acpi_device *parent, acpi_handle handle, int type, |
1180 | struct acpi_bus_ops *ops) | 1166 | struct acpi_bus_ops *ops) |