diff options
Diffstat (limited to 'drivers/uio/uio.c')
-rw-r--r-- | drivers/uio/uio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 3a6934bf7131..9ac22c7c3854 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c | |||
@@ -682,9 +682,9 @@ int __uio_register_device(struct module *owner, | |||
682 | if (ret) | 682 | if (ret) |
683 | goto err_get_minor; | 683 | goto err_get_minor; |
684 | 684 | ||
685 | idev->dev = device_create_drvdata(uio_class->class, parent, | 685 | idev->dev = device_create(uio_class->class, parent, |
686 | MKDEV(uio_major, idev->minor), idev, | 686 | MKDEV(uio_major, idev->minor), idev, |
687 | "uio%d", idev->minor); | 687 | "uio%d", idev->minor); |
688 | if (IS_ERR(idev->dev)) { | 688 | if (IS_ERR(idev->dev)) { |
689 | printk(KERN_ERR "UIO: device register failed\n"); | 689 | printk(KERN_ERR "UIO: device register failed\n"); |
690 | ret = PTR_ERR(idev->dev); | 690 | ret = PTR_ERR(idev->dev); |