From: Gabor Juhos Date: Mon, 2 Jun 2008 19:26:10 +0000 (+0000) Subject: 2.6.26: fix gpio_dev compile error X-Git-Tag: reboot~26394 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bbe724019f5e3b006d602512f713c3eed452a6c8;p=openwrt%2Fstaging%2Flynxis.git 2.6.26: fix gpio_dev compile error SVN-Revision: 11333 --- 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 48ef76f8a9..9a83adc1fb 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 @@ -142,7 +142,7 @@ gpio_probe(struct platform_device *dev) } gpio_class = class_create(THIS_MODULE, DEVNAME); - class_device_create(gpio_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME); + device_create(gpio_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME); printk(KERN_INFO DRVNAME ": gpio device registered with major %d\n", dev_major);