Module gpio.c (please LeonidM)

Hello again. I already used the gpio.c module, which in my case the function is “ns9xxx_gpio_irq_handler” but I get many errors “no such file or directory” of libraries "# include " " # include “,” # include “and many more and errors as " error: ‘GPIO_CFG_FUNC_2’ undeclared here (not in a function)”. I’m reading the book LINUX DEVICE DRIVERS and places that you must have a current version of kernel (I have the 2.26). Do you think that it can be the version of the Kernel the problem that to compile that give me so many errors?

Thank you very much LeonidM.

Are you using DEL? What version? Create a new Uboot/Kernel/rootfs project ,go to kernel configuration screen and add gpio_test application. It will also add a gpio module for you. Do not change anything else. Build the kernel and rootfs, install, load. It will compile with no errors. Follow instructions in online help to create nodes for GPIOs in example, load gpio module and run gpio_test example. It runs fine, i’ve done it myself. Once al this is working for you you can start making changes to the example and the module.