提交 77e27e9f 编写于 作者: D Dave Airlie 提交者: Dave Airlie

drm: enable udev node creation

Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 b018fcda
...@@ -160,12 +160,7 @@ int drm_sysfs_device_add(struct drm_device *dev, struct drm_head *head) ...@@ -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.parent = &dev->pdev->dev;
dev->dev.class = drm_class; dev->dev.class = drm_class;
dev->dev.release = drm_sysfs_device_release; dev->dev.release = drm_sysfs_device_release;
/* dev->dev.devt = head->device;
* 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; */
snprintf(dev->dev.bus_id, BUS_ID_SIZE, "card%d", head->minor); snprintf(dev->dev.bus_id, BUS_ID_SIZE, "card%d", head->minor);
err = device_register(&dev->dev); err = device_register(&dev->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册