summaryrefslogtreecommitdiffstats
path: root/drivers/video/msm
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@codeaurora.org>2010-07-27 14:04:31 -0700
committerDaniel Walker <dwalker@codeaurora.org>2010-10-12 16:11:12 -0700
commitd601c795c41c0016790ff1a92f2307fd4ff29791 (patch)
tree417542c2d503c1500549b63f767560229aabf13f /drivers/video/msm
parent5ad43ff98ac926e37ecbdef04ba7d4d104604028 (diff)
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>
Diffstat (limited to 'drivers/video/msm')
-rw-r--r--drivers/video/msm/mdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c
index 2b5bf79ffe7..c3636d55a3c 100644
--- a/drivers/video/msm/mdp.c
+++ b/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: