Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97049
b: refs/heads/master
c: 8b48587
h: refs/heads/master
i:
  97047: 6238bbb
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent c61f235 commit 9bb3a50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 19051c5035d217e572672a2ca9db06c1cef50e9b
refs/heads/master: 8b485877e0b9eb23c3579f50cca165f75442c6cc
10 changes: 7 additions & 3 deletions trunk/drivers/video/display/display-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/ctype.h>
#include <linux/idr.h>
#include <linux/err.h>
#include <linux/kdev_t.h>

static ssize_t display_show_name(struct device *dev,
struct device_attribute *attr, char *buf)
Expand Down Expand Up @@ -152,10 +153,13 @@ struct display_device *display_device_register(struct display_driver *driver,
mutex_unlock(&allocated_dsp_lock);

if (!ret) {
new_dev->dev = device_create(display_class, parent, 0,
"display%d", new_dev->idx);
new_dev->dev = device_create_drvdata(display_class,
parent,
MKDEV(0,0),
new_dev,
"display%d",
new_dev->idx);
if (!IS_ERR(new_dev->dev)) {
dev_set_drvdata(new_dev->dev, new_dev);
new_dev->parent = parent;
new_dev->driver = driver;
mutex_init(&new_dev->lock);
Expand Down

0 comments on commit 9bb3a50

Please sign in to comment.