Thomas Renninger 7779688fc3 ACPI: acpi_bus_{scan,bus,add}: return -ENODEV if no device was found
Callers (acpi_memhotplug.c, dock.c and others) check for the return
value of acpi_bus_add() and assume a valid device was returned in
case zero was returned.

Thus return -ENODEV if no device was found in acpi_bus_scan and
propagate this through acpi_bus_add and acpi_bus_start.

Also remove a confusing comment in acpiphp_glue.c, acpi_bus_scan
will and cannot invoke if acpi_bus_add returns no valid device.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2010-01-31 21:43:32 -05:00
..
2009-12-15 22:27:39 -05:00
2009-10-06 13:55:56 -04:00
2009-12-16 00:07:21 -05:00
2009-12-16 03:33:28 -05:00
2010-01-15 22:53:04 -05:00
2009-12-22 03:24:08 -05:00
2009-12-22 03:24:08 -05:00
2009-12-16 14:22:32 -05:00
2009-06-17 23:32:23 -04:00
2010-01-16 15:56:43 -05:00
2010-01-16 15:56:43 -05:00
2010-01-16 15:56:43 -05:00