summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorRafael J. Wysocki2013-01-29 13:58:34 +0100
committerRafael J. Wysocki2013-01-29 13:58:34 +0100
commit64e94e7e0ffb20ee11a596aa04fcdeefb33e000d (patch)
tree9ef0331d6c207b54502906c239b40220e8113502 /drivers/pci/hotplug
parentACPI / scan: Make scanning of fixed devices follow the general scheme (diff)
parentACPI / scan: Make namespace scanning and trimming mutually exclusive (diff)
downloadkernel-qcow2-linux-64e94e7e0ffb20ee11a596aa04fcdeefb33e000d.tar.gz
kernel-qcow2-linux-64e94e7e0ffb20ee11a596aa04fcdeefb33e000d.tar.xz
kernel-qcow2-linux-64e94e7e0ffb20ee11a596aa04fcdeefb33e000d.zip
Merge branch 'acpi-scan' into acpi-cleanup
The following commits depend on the 'acpi-scan' material.
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 9e2b1f6dbe41..d1a6f4a25da8 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -742,8 +742,7 @@ static int acpiphp_bus_add(struct acpiphp_func *func)
/* this shouldn't be in here, so remove
* the bus then re-add it...
*/
- ret_val = acpi_bus_trim(device);
- dbg("acpi_bus_trim return %x\n", ret_val);
+ acpi_bus_trim(device);
}
ret_val = acpi_bus_scan(func->handle);
@@ -772,11 +771,8 @@ static int acpiphp_bus_trim(acpi_handle handle)
return retval;
}
- retval = acpi_bus_trim(device);
- if (retval)
- err("cannot remove from acpi list\n");
-
- return retval;
+ acpi_bus_trim(device);
+ return 0;
}
static void acpiphp_set_acpi_region(struct acpiphp_slot *slot)