]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: typec: intel_pmc_mux: Add dependency on ACPI
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 16 Sep 2020 09:11:00 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 10:42:34 +0000 (12:42 +0200)
Since the driver now needs to find the IOM ACPI node, the
driver depends on ACPI. Without the dependency set, the
driver will only fail to compile when ACPI is not enabled.

Fixes: 94898a58cf45 ("usb: typec: intel_pmc_mux: Check the port status before connect")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200916091102.27118-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/Kconfig

index a4dbd11f8ee265e252eb82af2ffe2046b93c92cc..edead555835e2c31851de505347867c25af6e8ff 100644 (file)
@@ -11,6 +11,7 @@ config TYPEC_MUX_PI3USB30532
 
 config TYPEC_MUX_INTEL_PMC
        tristate "Intel PMC mux control"
+       depends on ACPI
        depends on INTEL_SCU_IPC
        select USB_ROLE_SWITCH
        help