I'm writing a kernel module for driving a sensor. When I try to request a GPIO that is present on /sys/class/gpio the module doesn't fail,
but it also is not set, when I try to write to it.
When I try a GPIO that is not present on /sys/class/gpio the gpio_request fails.

Do I need to do anything before trying to request a GPIO?