Lines Matching refs:gpio_major
37 static int gpio_major;
122 if ((gpio_major = register_chrdev(0, "gpio", &gpio_fops)) < 0)
124 if ((gpio_major = devfs_register_chrdev(0, "gpio", &gpio_fops)) < 0)
126 return gpio_major;
136 device_create(gpiodev_class, NULL, MKDEV(gpio_major, 0), NULL, "gpio", 0);
138 class_device_create(gpiodev_class, NULL, MKDEV(gpio_major, 0), NULL, "gpio");
142 gpio_major, 0, S_IFCHR | S_IRUGO | S_IWUGO,
155 device_destroy(gpiodev_class, MKDEV(gpio_major, 0));
157 class_device_destroy(gpiodev_class, MKDEV(gpio_major, 0));
163 if (gpio_major >= 0)
164 unregister_chrdev(gpio_major, "gpio");
169 devfs_unregister_chrdev(gpio_major, "gpio");