aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-21 19:28:59 +0000
committerLen Brown <len.brown@intel.com>2009-09-25 14:24:24 -0400
commite8b945c9c155d06e1d1ea594f8e18e01aa36f612 (patch)
tree6670e816b725bfeaca133523cb8f5ade9ee9d477 /drivers/acpi
parent29aaefa68f933110e577fbf3ca360c88331e5ff5 (diff)
downloadkernel_samsung_smdk4412-e8b945c9c155d06e1d1ea594f8e18e01aa36f612.zip
kernel_samsung_smdk4412-e8b945c9c155d06e1d1ea594f8e18e01aa36f612.tar.gz
kernel_samsung_smdk4412-e8b945c9c155d06e1d1ea594f8e18e01aa36f612.tar.bz2
ACPI: remove unused acpi_bus_scan_fixed() argument
We never use the "root" argument, so just remove it. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 75b7c57..0302dd4 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1580,15 +1580,12 @@ int acpi_bus_trim(struct acpi_device *start, int rmdevice)
}
EXPORT_SYMBOL_GPL(acpi_bus_trim);
-static int acpi_bus_scan_fixed(struct acpi_device *root)
+static int acpi_bus_scan_fixed(void)
{
int result = 0;
struct acpi_device *device = NULL;
struct acpi_bus_ops ops;
- if (!root)
- return -ENODEV;
-
memset(&ops, 0, sizeof(ops));
ops.acpi_op_add = 1;
ops.acpi_op_start = 1;
@@ -1639,7 +1636,7 @@ int __init acpi_scan_init(void)
/*
* Enumerate devices in the ACPI namespace.
*/
- result = acpi_bus_scan_fixed(acpi_root);
+ result = acpi_bus_scan_fixed();
if (!result)
result = acpi_bus_scan(acpi_root, &ops);