ACPI / scan: always register ACPI LPSS scan handler
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 May 2014 12:34:05 +0000 (14:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 May 2014 14:04:36 +0000 (16:04 +0200)
commitd6ddaaac8f5c37ad84db3e6e019981f392389cf0
tree1b5cb6bd0e4e8ba9b02b81174fb5f3464aabff59
parentcccd420859a419756bc4ed25d52989a47d702561
ACPI / scan: always register ACPI LPSS scan handler

Prevent platform devices from being created for ACPI LPSS devices
if CONFIG_X86_INTEL_LPSS is unset by compiling out the LPSS scan
handler's callbacks only in that case and still compiling its device
ID list in and registering the scan handler in either case.

This change is based on a prototype from Zhang Rui.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/Makefile
drivers/acpi/acpi_lpss.c
drivers/acpi/internal.h