浏览代码

drivers: msm: video: add dev_set_name call

This is required before the driver can successfully be registered.

Adapted from Arve Hjønnevåg <arve@android.com> changes in the Google tree.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Daniel Walker 15 年之前
父节点
当前提交
d601c795c4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/video/msm/mdp.c

+ 1 - 0
drivers/video/msm/mdp.c

@@ -482,6 +482,7 @@ int mdp_probe(struct platform_device *pdev)
 	/* register mdp device */
 	mdp->mdp_dev.dev.parent = &pdev->dev;
 	mdp->mdp_dev.dev.class = mdp_class;
+	dev_set_name(&mdp->mdp_dev.dev, "mdp%d", pdev->id);
 
 	/* if you can remove the platform device you'd have to implement
 	 * this: