From d601c795c41c0016790ff1a92f2307fd4ff29791 Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Tue, 27 Jul 2010 14:04:31 -0700 Subject: drivers: msm: video: add dev_set_name call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is required before the driver can successfully be registered. Adapted from Arve Hjønnevåg changes in the Google tree. Signed-off-by: Daniel Walker diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c index 2b5bf79..c3636d5 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: -- cgit v0.10.2