]> err.no Git - linux-2.6/commitdiff
drm: enable udev node creation
authorDave Airlie <airlied@linux.ie>
Wed, 28 Nov 2007 23:48:20 +0000 (09:48 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2008 05:09:39 +0000 (15:09 +1000)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_sysfs.c

index 6f8623ce045e3279521e00901b29d788c9367b96..fa36153619e83a28696b1360de42c1776c943aec 100644 (file)
@@ -160,12 +160,7 @@ int drm_sysfs_device_add(struct drm_device *dev, struct drm_head *head)
        dev->dev.parent = &dev->pdev->dev;
        dev->dev.class = drm_class;
        dev->dev.release = drm_sysfs_device_release;
-       /*
-        * This will actually add the major:minor file so that udev
-        * will create the device node.  We don't want to do that just
-        * yet...
-        */
-       /* dev->dev.devt = head->device; */
+       dev->dev.devt = head->device;
        snprintf(dev->dev.bus_id, BUS_ID_SIZE, "card%d", head->minor);
 
        err = device_register(&dev->dev);