From: Anton Vorontsov Date: Wed, 27 Oct 2010 22:33:16 +0000 (-0700) Subject: gpiolib: fix HAVE_GPIO_LIB leftovers in asm-generic/gpio.h X-Git-Tag: MMI-PSA29.97-13-9~21932^2~119 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09cd9527d621640d4dd231dff77b681e711d8e4b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git gpiolib: fix HAVE_GPIO_LIB leftovers in asm-generic/gpio.h commit 7444a72effa632fcd8edc566f88 ("gpiolib: allow user-selection") removed HAVE_GPIO_LIB Kconfig symbol, but the header file still uses the name [to confuse readers wrt #ifdef/#else/#endif location]. The real Kconfig symbol nowadays is CONFIG_GPIOLIB. Signed-off-by: Anton Vorontsov Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 8ca18e26d7e3..ff5c66080c8c 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -210,7 +210,7 @@ extern void gpio_unexport(unsigned gpio); #endif /* CONFIG_GPIO_SYSFS */ -#else /* !CONFIG_HAVE_GPIO_LIB */ +#else /* !CONFIG_GPIOLIB */ static inline int gpio_is_valid(int number) { @@ -239,7 +239,7 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value) gpio_set_value(gpio, value); } -#endif /* !CONFIG_HAVE_GPIO_LIB */ +#endif /* !CONFIG_GPIOLIB */ #ifndef CONFIG_GPIO_SYSFS