X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/35673e0f686e169b297529fe3d556f1f89dbc83b..bb8b8ac60fec4bce52c8d82b8f5d9a42b811e3ec:/target/linux/generic-2.6/files-2.6.26/drivers/char/gpio_dev.c?ds=sidebyside diff --git a/target/linux/generic-2.6/files-2.6.26/drivers/char/gpio_dev.c b/target/linux/generic-2.6/files-2.6.26/drivers/char/gpio_dev.c index 9a83adc1f..b82d2f13e 100644 --- a/target/linux/generic-2.6/files-2.6.26/drivers/char/gpio_dev.c +++ b/target/linux/generic-2.6/files-2.6.26/drivers/char/gpio_dev.c @@ -37,7 +37,7 @@ static int dev_major; static unsigned int gpio_access_mask; -static struct class *gpio_class; +static struct class *gpiodev_class; /* Counter is 1, if the device is not opened and zero (or less) if opened. */ static atomic_t gpio_open_cnt = ATOMIC_INIT(1); @@ -141,8 +141,8 @@ gpio_probe(struct platform_device *dev) goto out; } - gpio_class = class_create(THIS_MODULE, DEVNAME); - device_create(gpio_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME); + gpiodev_class = class_create(THIS_MODULE, DRVNAME); + device_create(gpiodev_class, NULL, MKDEV(dev_major, 0), DEVNAME); printk(KERN_INFO DRVNAME ": gpio device registered with major %d\n", dev_major);