Skip to content

Commit 9c8224d

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: zevio: Use proper headers and drop OF_GPIO dependency
The driver doesn't depend on the OF_GPIO to be compiled. 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]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent a25d1df commit 9c8224d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ config GPIO_XTENSA
762762

763763
config GPIO_ZEVIO
764764
bool "LSI ZEVIO SoC memory mapped GPIOs"
765-
depends on ARM && OF_GPIO
765+
depends on ARM
766766
help
767767
Say yes here to support the GPIO controller in LSI ZEVIO SoCs.
768768

drivers/gpio/gpio-zevio.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
* Author: Fabian Vogt <[email protected]>
66
*/
77

8-
#include <linux/spinlock.h>
8+
#include <linux/bitops.h>
99
#include <linux/errno.h>
1010
#include <linux/init.h>
11-
#include <linux/bitops.h>
1211
#include <linux/io.h>
13-
#include <linux/of_device.h>
12+
#include <linux/mod_devicetable.h>
1413
#include <linux/slab.h>
14+
#include <linux/spinlock.h>
15+
1516
#include <linux/gpio/driver.h>
1617

1718
/*

0 commit comments

Comments
 (0)