ACPI / scan: Fix check of device_attach() return value.
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 11 Jan 2013 21:08:09 +0000 (22:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 11 Jan 2013 21:08:09 +0000 (22:08 +0100)
commitabe99210e0f624cea39f1dc375ba818b201c0d7f
tree55b88ba9c086d04fb7534ed10147f012cc1076f6
parentf95988de06ea62ef5bd861f06e9ef56cea405ed1
ACPI / scan: Fix check of device_attach() return value.

Since device_attach() returns 1 on success (a driver has been bound
to the device), the check against its return value in
acpi_bus_device_attach() should modified to take that into accout.
Make it so.

[rjw: Subject and changelog.]
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c