ACPI / scan: Do not bind ACPI drivers to objects with scan handlers
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 15 Jun 2013 22:36:41 +0000 (00:36 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Jun 2013 23:25:19 +0000 (01:25 +0200)
commit24071f472d813fccacc1ef7356b1f41422a1b968
treeecff2a9d976919b434a2a410d03317a1b8e0ea3a
parent66345d5f79fcfa0214f5d98763643d4ee8e6965d
ACPI / scan: Do not bind ACPI drivers to objects with scan handlers

ACPI drivers must not be bound to device objects having scan handlers
attatched to them, so make acpi_device_probe() fail with -EINVAL if the
device object being probed has an ACPI scan handler.

After this change the analogous check introduced into the ACPI video
driver by commit 8c9b7a7 (ACPI / video: Do not bind to device objects
with a scan handler) is not necessary any more and may be dropped, so
drop it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Tony Luck <tony.luck@gmail.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/scan.c
drivers/acpi/video.c