aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-11-28 18:48:20 -0500
committerDave Airlie <airlied@redhat.com>2008-02-07 00:09:39 -0500
commit77e27e9fe5bd399c9f56b941b212a58338e94463 (patch)
tree98549d6bbbea4f1c22fdbf002ee438bb119be218
parentb018fcdaa5e8b4eabb8cffda687d00004a3c4785 (diff)
drm: enable udev node creation
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r--drivers/char/drm/drm_sysfs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/char/drm/drm_sysfs.c b/drivers/char/drm/drm_sysfs.c
index 6f8623ce045e..fa36153619e8 100644
--- a/drivers/char/drm/drm_sysfs.c
+++ b/drivers/char/drm/drm_sysfs.c
@@ -160,12 +160,7 @@ int drm_sysfs_device_add(struct drm_device *dev, struct drm_head *head)
160 dev->dev.parent = &dev->pdev->dev; 160 dev->dev.parent = &dev->pdev->dev;
161 dev->dev.class = drm_class; 161 dev->dev.class = drm_class;
162 dev->dev.release = drm_sysfs_device_release; 162 dev->dev.release = drm_sysfs_device_release;
163 /* 163 dev->dev.devt = head->device;
164 * This will actually add the major:minor file so that udev
165 * will create the device node. We don't want to do that just
166 * yet...
167 */
168 /* dev->dev.devt = head->device; */
169 snprintf(dev->dev.bus_id, BUS_ID_SIZE, "card%d", head->minor); 164 snprintf(dev->dev.bus_id, BUS_ID_SIZE, "card%d", head->minor);
170 165
171 err = device_register(&dev->dev); 166 err = device_register(&dev->dev);