4

variable `GPIO_LED_ctl_ops' has initializer but incomplete type

view full story
linux-howto

http://www.linuxquestions.org – hello,everyone! when i compile the device driver of led ,i get the erro like this: [root@localhost led]# arm-linux-gcc -D__KERNEL__ -DMODULE -I /home/liumeng/lmldd /linux-2.6.34.1/ -c -O -Wall led.c -o led.o led.c:34: error: variable `GPIO_LED_ctl_ops' has initializer but incomplete type led.c:36: error: unknown field `open' specified in initializer led.c:36: error: `GPIO_LED_open' undeclared here (not in a function) led.c:36: warning: excess elements in struct initializer led.c:36: warning: (near initialization for `GPIO_LED_ctl_ops') led.c:37: error: unknown field `read' specified in init (HowTos)