ACPI: Do not fail acpi_bind_one() if device is already bound correctly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Aug 2013 23:15:25 +0000 (01:15 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Aug 2013 21:41:46 +0000 (23:41 +0200)
commit3fe444ad7e3a6951fa0c9b552c5afe6f6df0d571
treee81f4cc4752f9c5c243e8f84a8470f5b48b8e19e
parent69fdadfd2200e0bf3d10a7a7925db8e9fc5a46fd
ACPI: Do not fail acpi_bind_one() if device is already bound correctly

Modify acpi_bind_one() so that it doesn't fail if the device
represented by its first argument has already been bound to the
given ACPI handle (second argument), because that is not a good
enough reason for returning an error code.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lan Tianyu <tianyu.lan@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/glue.c