diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 48da857f4774829d2301559c7e69656bae636307..a116609b1914e95db54e38c6a1990e0e66a44388 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -33,6 +33,7 @@ config ARCH_REQUIRE_GPIOLIB
 
 menuconfig GPIOLIB
 	bool "GPIO Support"
+	select ANON_INODES
 	help
 	  This enables GPIO support through the generic GPIO library.
 	  You only need to enable this, if you also want to enable