X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3e7cd682f49bbdf53a918e5d178991a781951bf6..08171f79fc8271d1e8fbb829af4f64c6695c670d:/target/linux/generic-2.6/files/drivers/char/gpio_dev.c diff --git a/target/linux/generic-2.6/files/drivers/char/gpio_dev.c b/target/linux/generic-2.6/files/drivers/char/gpio_dev.c index 4dc637471..8392fcf2d 100644 --- a/target/linux/generic-2.6/files/drivers/char/gpio_dev.c +++ b/target/linux/generic-2.6/files/drivers/char/gpio_dev.c @@ -142,7 +142,7 @@ gpio_probe(struct platform_device *dev) } gpiodev_class = class_create(THIS_MODULE, DRVNAME); - class_device_create(gpiodev_class, NULL, MKDEV(dev_major, 0), NULL, DEVNAME); + device_create(gpiodev_class, NULL, MKDEV(dev_major, 0), dev, DEVNAME); printk(KERN_INFO DRVNAME ": gpio device registered with major %d\n", dev_major);