kernel/include/asm-generic/gpio.h
.. .. @@ -2,10 +2,8 @@ 2 2 #ifndef _ASM_GENERIC_GPIO_H 3 3 #define _ASM_GENERIC_GPIO_H 4 4 5 -#include <linux/kernel.h>6 5 #include <linux/types.h> 7 6 #include <linux/errno.h> 8 -#include <linux/of.h>9 7 10 8 #ifdef CONFIG_GPIOLIB 11 9 .. .. @@ -140,6 +138,8 @@ 140 138 141 139 #else /* !CONFIG_GPIOLIB */ 142 140 141 +#include <linux/kernel.h>142 +143 143 static inline bool gpio_is_valid(int number) 144 144 { 145 145 /* only non-negative numbers are valid */