]> git.baikalelectronics.ru Git - kernel.git/commit
HISI LPC: Add Kconfig MFD_CORE dependency
authorJohn Garry <john.garry@huawei.com>
Thu, 19 Apr 2018 14:14:02 +0000 (22:14 +0800)
committerArnd Bergmann <arnd@arndb.de>
Thu, 26 Apr 2018 14:53:23 +0000 (16:53 +0200)
commitfc27924d8239cda2116ae2639352db2f628ed6a7
treefac75f8c2ba2c3afbd13f26ca93b2bf3eecb9f2f
parent7c78b4c3b6fa803a70d9b1ec66f4ca3f15d65b3b
HISI LPC: Add Kconfig MFD_CORE dependency

For ACPI support of the HiSilicon LPC driver we depend
on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this
dependency, so add it.

The reason for depending on MFD_CORE in the driver is
that we model the LPC host as an MFD, in that a platform
device will be created for each device on the bus.

We do this as we need to modify the resources of these
derived platform devices, something which we should not
do to the original devices created in the ACPI scan.
Details in 8813e5d0602f ("HISI LPC: Add ACPI support").

Fixes: 8813e5d0602f ("HISI LPC: Add ACPI support")
Reported-and-tested-by: Tan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/Kconfig