Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77e27e9f authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

drm: enable udev node creation



Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent b018fcda
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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);