ACPI: Unbind ACPI drv when probe failed
authorToshi Kani <toshi.kani@hp.com>
Thu, 7 Feb 2013 21:19:13 +0000 (21:19 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Feb 2013 12:41:39 +0000 (13:41 +0100)
commit5f27ee8e1261e47ec2e9dbebf17e87e55f568d75
tree8f58246c89ff53769b9c2daa4a6c2d61524da6f7
parentce7685ad764f070a9234df6a12a17eb92471d126
ACPI: Unbind ACPI drv when probe failed

When acpi_device_install_notify_handler() failed in acpi_device_probe(),
it calls acpi_drv->ops.remove() and fails the probe.  However, the ACPI
driver is left bound to the acpi_device.  Fix it by clearing the driver
and driver_data fields.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c