Skip to content

Commit 083b023

Browse files
andy-shevlinusw
authored andcommitted
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: Andy Shevchenko <[email protected]> Acked-by: Baruch Siach <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent aeb3c20 commit 083b023

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ config PINCTRL_DA9062
172172

173173
config PINCTRL_DIGICOLOR
174174
bool
175-
depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
175+
depends on ARCH_DIGICOLOR || COMPILE_TEST
176176
select PINMUX
177177
select GENERIC_PINCONF
178178

drivers/pinctrl/pinctrl-digicolor.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
* - Pin pad configuration (pull up/down, strength)
1212
*/
1313

14+
#include <linux/gpio/driver.h>
1415
#include <linux/init.h>
15-
#include <linux/platform_device.h>
16-
#include <linux/of.h>
17-
#include <linux/of_device.h>
1816
#include <linux/io.h>
19-
#include <linux/gpio/driver.h>
17+
#include <linux/mod_devicetable.h>
18+
#include <linux/platform_device.h>
2019
#include <linux/spinlock.h>
20+
2121
#include <linux/pinctrl/machine.h>
2222
#include <linux/pinctrl/pinconf.h>
2323
#include <linux/pinctrl/pinconf-generic.h>
2424
#include <linux/pinctrl/pinctrl.h>
2525
#include <linux/pinctrl/pinmux.h>
26+
2627
#include "pinctrl-utils.h"
2728

2829
#define DRIVER_NAME "pinctrl-digicolor"

0 commit comments

Comments
 (0)