[PATCH] drm/mcde: Drop double-assignment of mcde

Linus Walleij linus.walleij at linaro.org
Mon Nov 4 15:42:49 UTC 2019


It's enough to assign the member once.

Cc: Markus Elfring <Markus.Elfring at web.de>
Reported-by: Markus Elfring <Markus.Elfring at web.de>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 drivers/gpu/drm/mcde/mcde_drv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/mcde/mcde_drv.c b/drivers/gpu/drm/mcde/mcde_drv.c
index 9a09eba53182..31ab3c136e2d 100644
--- a/drivers/gpu/drm/mcde/mcde_drv.c
+++ b/drivers/gpu/drm/mcde/mcde_drv.c
@@ -343,7 +343,6 @@ static int mcde_probe(struct platform_device *pdev)
 	mcde->te_sync = true;
 	/* Enable continuous updates: this is what Linux' framebuffer expects */
 	mcde->oneshot_mode = false;
-	drm->dev_private = mcde;
 
 	/* First obtain and turn on the main power */
 	mcde->epod = devm_regulator_get(dev, "epod");
-- 
2.21.0



More information about the dri-devel mailing list