Skip to content

Commit

Permalink
drivers: msm: video: add dev_set_name call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Walker committed Oct 12, 2010
1 parent 5ad43ff commit d601c79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/msm/mdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d601c79

Please sign in to comment.