diff options
| author | Thomas Renninger <[email protected]> | 2010-01-29 16:48:52 +0000 |
|---|---|---|
| committer | Len Brown <[email protected]> | 2010-02-01 02:43:32 +0000 |
| commit | 7779688fc3d1ceddad84846a7b0affbe8e78ec6e (patch) | |
| tree | fff56e1fea8656749666280b857ecac04560e70a /scripts/mod/file2alias.c | |
| parent | ACPI: Add NULL pointer check in acpi_bus_start (diff) | |
| download | kernel-7779688fc3d1ceddad84846a7b0affbe8e78ec6e.tar.gz kernel-7779688fc3d1ceddad84846a7b0affbe8e78ec6e.zip | |
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 <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
