Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97054
b: refs/heads/master
c: 43691da
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent 076e3d3 commit 34d76ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54d29ad33e3483bcc7ca433a21cf294854e5154a
refs/heads/master: 43691da4cefcf0d0dd6432f9e7e0dba902b59597
7 changes: 3 additions & 4 deletions trunk/drivers/uio/uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,14 @@ int __uio_register_device(struct module *owner,
if (ret)
goto err_get_minor;

idev->dev = device_create(uio_class->class, parent,
MKDEV(uio_major, idev->minor),
"uio%d", idev->minor);
idev->dev = device_create_drvdata(uio_class->class, parent,
MKDEV(uio_major, idev->minor), idev,
"uio%d", idev->minor);
if (IS_ERR(idev->dev)) {
printk(KERN_ERR "UIO: device register failed\n");
ret = PTR_ERR(idev->dev);
goto err_device_create;
}
dev_set_drvdata(idev->dev, idev);

ret = uio_dev_add_attributes(idev);
if (ret)
Expand Down

0 comments on commit 34d76ac

Please sign in to comment.