gpio: fix build on CONFIG_GPIO_SYSFS=n