Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d601c795 authored by Daniel Walker's avatar Daniel Walker
Browse files

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: default avatarDaniel Walker <dwalker@codeaurora.org>
parent 5ad43ff9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -482,6 +482,7 @@ int mdp_probe(struct platform_device *pdev)
	/* register mdp device */
	/* register mdp device */
	mdp->mdp_dev.dev.parent = &pdev->dev;
	mdp->mdp_dev.dev.parent = &pdev->dev;
	mdp->mdp_dev.dev.class = mdp_class;
	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
	/* if you can remove the platform device you'd have to implement
	 * this:
	 * this: