- gpio_class = class_create(THIS_MODULE, DEVNAME);
- class_device_create(gpio_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME);
+ gpiodev_class = class_create(THIS_MODULE, DRVNAME);
+ class_device_create(gpiodev_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME);