Searched refs:gpio_major (Results 1 - 2 of 2) sorted by relevance

/netgear-WNDR4500-V1.0.1.40_1.0.68/src/shared/
H A Dlinux_gpio.c37 static int gpio_major; variable
112 if ((gpio_major = register_chrdev(0, "gpio", &gpio_fops)) < 0)
114 if ((gpio_major = devfs_register_chrdev(0, "gpio", &gpio_fops)) < 0)
116 return gpio_major;
125 class_device_create(gpiodev_class, NULL, MKDEV(gpio_major, 0), NULL, "gpio");
128 gpio_major, 0, S_IFCHR | S_IRUGO | S_IWUGO,
140 class_device_destroy(gpiodev_class, MKDEV(gpio_major, 0));
145 if (gpio_major >= 0)
146 unregister_chrdev(gpio_major, "gpio");
151 devfs_unregister_chrdev(gpio_major, "gpi
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/mips/brcm-boards/bcm947xx/
H A Dgpio.c33 static int gpio_major; variable
135 if ((gpio_major = devfs_register_chrdev(0, "gpio", &gpio_fops)) < 0)
136 return gpio_major;
143 DEVFS_FL_DEFAULT, gpio_major, i,
159 devfs_unregister_chrdev(gpio_major, "gpio");

Completed in 172 milliseconds