Commit 083b0230 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

pinctrl: digicolor: Use proper headers and drop OF dependency

The driver doesn't depend on the OF to be complied. Hence
the proper header to use is mod_devicetable.h. Replace of*.h with
the above mentioned and drop redundant dependency.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Link: https://lore.kernel.org/r/20230113143640.24302-2-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent aeb3c200
...@@ -172,7 +172,7 @@ config PINCTRL_DA9062 ...@@ -172,7 +172,7 @@ config PINCTRL_DA9062
config PINCTRL_DIGICOLOR config PINCTRL_DIGICOLOR
bool bool
depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST) depends on ARCH_DIGICOLOR || COMPILE_TEST
select PINMUX select PINMUX
select GENERIC_PINCONF select GENERIC_PINCONF
......
...@@ -11,18 +11,19 @@ ...@@ -11,18 +11,19 @@
* - Pin pad configuration (pull up/down, strength) * - Pin pad configuration (pull up/down, strength)
*/ */
#include <linux/gpio/driver.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/gpio/driver.h> #include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/pinctrl/machine.h> #include <linux/pinctrl/machine.h>
#include <linux/pinctrl/pinconf.h> #include <linux/pinctrl/pinconf.h>
#include <linux/pinctrl/pinconf-generic.h> #include <linux/pinctrl/pinconf-generic.h>
#include <linux/pinctrl/pinctrl.h> #include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h> #include <linux/pinctrl/pinmux.h>
#include "pinctrl-utils.h" #include "pinctrl-utils.h"
#define DRIVER_NAME "pinctrl-digicolor" #define DRIVER_NAME "pinctrl-digicolor"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment