extcon: usb-gpio: Use the right includes
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jul 2021 19:06:06 +0000 (21:06 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 27 Oct 2021 05:13:36 +0000 (14:13 +0900)
The USB GPIO extcon driver does not use any of the legacy
includes <linux/gpio.h> or <linux/of_gpio.h> but
exploits the fact that this brings in <linux/mod_device_table.h>.
Fix this up by using the right includes.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-usb-gpio.c

index f06be6d4e2a9cf730b289c6e41ace1f6ef21eea3..0cb440bdd5cbedbb2bdabbed964d7905115bc0f9 100644 (file)
@@ -7,18 +7,17 @@
  */
 
 #include <linux/extcon-provider.h>
-#include <linux/gpio.h>
 #include <linux/gpio/consumer.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
 #include <linux/pinctrl/consumer.h>
+#include <linux/mod_devicetable.h>
 
 #define USB_GPIO_DEBOUNCE_MS   20      /* ms */