diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:45 -0400 |
commit | 77997aaadd34510ed73153a4cd60161257a9e289 (patch) | |
tree | ad8ab469f7febb690749e2cae6c5a04b0dc016fc /drivers/video/display | |
parent | b0b090e5792fa228b5c825fcc5e1b7b0da7abec9 (diff) |
device create: video: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the
original call to be sane.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/video/display')
-rw-r--r-- | drivers/video/display/display-sysfs.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/video/display/display-sysfs.c b/drivers/video/display/display-sysfs.c index 6ef800bdf482..4830b1bf51e5 100644 --- a/drivers/video/display/display-sysfs.c +++ b/drivers/video/display/display-sysfs.c | |||
@@ -153,12 +153,9 @@ struct display_device *display_device_register(struct display_driver *driver, | |||
153 | mutex_unlock(&allocated_dsp_lock); | 153 | mutex_unlock(&allocated_dsp_lock); |
154 | 154 | ||
155 | if (!ret) { | 155 | if (!ret) { |
156 | new_dev->dev = device_create_drvdata(display_class, | 156 | new_dev->dev = device_create(display_class, parent, |
157 | parent, | 157 | MKDEV(0, 0), new_dev, |
158 | MKDEV(0,0), | 158 | "display%d", new_dev->idx); |
159 | new_dev, | ||
160 | "display%d", | ||
161 | new_dev->idx); | ||
162 | if (!IS_ERR(new_dev->dev)) { | 159 | if (!IS_ERR(new_dev->dev)) { |
163 | new_dev->parent = parent; | 160 | new_dev->parent = parent; |
164 | new_dev->driver = driver; | 161 | new_dev->driver = driver; |