aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-15 07:23:53 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-15 07:23:53 -0500
commitae281795ec92d35dd1631401829124acab965b1f (patch)
treefbe1444521184eef3927aa0a8bb13e1da4356a9a /drivers/pci
parentb17b537ac1429a609addb55bf985f5ebfcf4ae7b (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')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c4
-rw-r--r--drivers/pci/hotplug/sgi_hotplug.c2
2 files changed, 3 insertions, 3 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
diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c
index f3c419256d2a..2e006ee5738b 100644
--- a/drivers/pci/hotplug/sgi_hotplug.c
+++ b/drivers/pci/hotplug/sgi_hotplug.c
@@ -535,7 +535,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot)
535 ret = acpi_bus_get_device(chandle, 535 ret = acpi_bus_get_device(chandle,
536 &device); 536 &device);
537 if (ACPI_SUCCESS(ret)) 537 if (ACPI_SUCCESS(ret))
538 acpi_bus_trim(device, 1); 538 acpi_bus_trim(device);
539 } 539 }
540 } 540 }
541 541