mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
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 <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Len Brown <[email protected]>