diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-15 07:23:53 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-15 07:23:53 -0500 |
commit | ae281795ec92d35dd1631401829124acab965b1f (patch) | |
tree | fbe1444521184eef3927aa0a8bb13e1da4356a9a /drivers/pci/hotplug/acpiphp_glue.c | |
parent | b17b537ac1429a609addb55bf985f5ebfcf4ae7b (diff) |
ACPI / scan: Drop the second argument of acpi_bus_trim()
All callers of acpi_bus_trim() pass 1 (true) as the second argument
of it, so remove that argument entirely and change acpi_bus_trim()
to always behave as though it were 1.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 91b5ad875c53..22006f2d9dd5 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -742,7 +742,7 @@ static int acpiphp_bus_add(struct acpiphp_func *func) | |||
742 | /* this shouldn't be in here, so remove | 742 | /* this shouldn't be in here, so remove |
743 | * the bus then re-add it... | 743 | * the bus then re-add it... |
744 | */ | 744 | */ |
745 | ret_val = acpi_bus_trim(device, 1); | 745 | ret_val = acpi_bus_trim(device); |
746 | dbg("acpi_bus_trim return %x\n", ret_val); | 746 | dbg("acpi_bus_trim return %x\n", ret_val); |
747 | } | 747 | } |
748 | 748 | ||
@@ -772,7 +772,7 @@ static int acpiphp_bus_trim(acpi_handle handle) | |||
772 | return retval; | 772 | return retval; |
773 | } | 773 | } |
774 | 774 | ||
775 | retval = acpi_bus_trim(device, 1); | 775 | retval = acpi_bus_trim(device); |
776 | if (retval) | 776 | if (retval) |
777 | err("cannot remove from acpi list\n"); | 777 | err("cannot remove from acpi list\n"); |
778 | 778 | ||