diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-10-05 13:08:12 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-10-05 13:08:12 +0000 |
commit | c4cda8c48ac8df985226f232bc3ca4a3d773a1ff (patch) | |
tree | 8adcce4b3a1a75ae92090ecc44b937e4b1fda3b7 /target/linux/generic-2.6/files-2.6.25/drivers/char | |
parent | d232e90c1229bfb8c27afd794628206d013e645f (diff) | |
download | master-187ad058-c4cda8c48ac8df985226f232bc3ca4a3d773a1ff.tar.gz master-187ad058-c4cda8c48ac8df985226f232bc3ca4a3d773a1ff.tar.bz2 master-187ad058-c4cda8c48ac8df985226f232bc3ca4a3d773a1ff.zip |
[kernel] make gpio_dev compatible with GPIOLIB & GPIO_SYSFS (closes #4016)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12864 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.25/drivers/char')
-rw-r--r-- | target/linux/generic-2.6/files-2.6.25/drivers/char/gpio_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic-2.6/files-2.6.25/drivers/char/gpio_dev.c b/target/linux/generic-2.6/files-2.6.25/drivers/char/gpio_dev.c index 48ef76f8a9..4dc637471c 100644 --- a/target/linux/generic-2.6/files-2.6.25/drivers/char/gpio_dev.c +++ b/target/linux/generic-2.6/files-2.6.25/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); - 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); printk(KERN_INFO DRVNAME ": gpio device registered with major %d\n", dev_major); |