diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-30 04:27:31 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-05-30 16:04:36 +0200 |
commit | d34afa9de4447367b734ec407e5a9e10617d6ec3 (patch) | |
tree | 0474cb7d35a0e28a25da51d6abbce4c4feae9e95 /drivers/acpi/Makefile | |
parent | 549e68455c6706796d9d244364dfbf5c575bd1a5 (diff) | |
download | blackbird-obmc-linux-d34afa9de4447367b734ec407e5a9e10617d6ec3.tar.gz blackbird-obmc-linux-d34afa9de4447367b734ec407e5a9e10617d6ec3.zip |
ACPI / scan: Change the meaning of missing .attach() in scan handlers
Currently, some scan handlers can be compiled out entirely, which
leaves the device objects they normally attach to without a scan
handler. This isn't a problem as long as we don't have any default
enumeration mechanism that applies to all devices without a scan
handler. However, if such a default enumeration is added, it still
should not be applied to devices that are normally attached to by
scan handlers, because that may result in creating "physical" device
objects of a wrong type for them.
Since we are going to create platform device objects for all ACPI
device objects with pnp.type.platform_id set by default, clear
pnp.type.platform_id where there is a matching scan handler without
an .attach() callback and otherwise simply treat that scan handler
as though the .attach() callback was present but always returned 0.
This will allow us to compile out scan handler callbacks and leave
the device ID lists used by them so as to prevent creating platform
device objects for the matching ACPI devices.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/acpi/Makefile')
0 files changed, 0 insertions, 0 deletions