gpio: ich: Switch to be dependent on LPC_ICH
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 2 Apr 2021 18:42:25 +0000 (21:42 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 May 2021 14:07:41 +0000 (16:07 +0200)
Driver is neither dependent to PCI nor using MFD_CORE.
Replace those dependency and selection by dependency on LPC_ICH.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/Kconfig
drivers/gpio/gpio-ich.c

index 39a4b8207b48550fddf144f429b7f7e27e8c9c69..3456b418127ac88325d312f6668aafa4dd0177f0 100644 (file)
@@ -321,9 +321,8 @@ config GPIO_HLWD
 
 config GPIO_ICH
        tristate "Intel ICH GPIO"
-       depends on PCI && X86
-       select MFD_CORE
-       select LPC_ICH
+       depends on X86
+       depends on LPC_ICH
        help
          Say yes here to support the GPIO functionality of a number of Intel
          ICH-based chipsets.  Currently supported devices: ICH6, ICH7, ICH8
index de56c013a658672076dbcdb9fb52d111414a9cc4..3b31f5e9bf402ac923b14716c945537a4b260701 100644 (file)
@@ -5,13 +5,11 @@
  * Copyright (C) 2010 Extreme Engineering Solutions.
  */
 
-
 #include <linux/bitops.h>
 #include <linux/gpio/driver.h>
 #include <linux/ioport.h>
 #include <linux/mfd/lpc_ich.h>
 #include <linux/module.h>
-#include <linux/pci.h>
 #include <linux/platform_device.h>
 
 #define DRV_NAME "gpio_ich"