All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/mediatek: Delete not used of_device_get_match_data
@ 2020-05-18 11:22 ` matthias.bgg
  0 siblings, 0 replies; 16+ messages in thread
From: matthias.bgg @ 2020-05-18 11:22 UTC (permalink / raw)
  To: chunkuang.hu, p.zabel, airlied, daniel
  Cc: matthias.bgg, dri-devel, linux-arm-kernel, linux-mediatek,
	linux-kernel, enric.balletbo, Matthias Brugger

From: Matthias Brugger <matthias.bgg@gmail.com>

The driver will be loaded by via a platform device. So we
will need to get the device_node from the parent device.
Depending on this we will set the driver data.
As all this is done later already, just delete the call to
of_device_get_match_data.

Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
---
 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index e2bb0d19ef99..63ec92ba0e92 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -447,7 +447,6 @@ static int mtk_drm_probe(struct platform_device *pdev)
 	if (!private)
 		return -ENOMEM;
 
-	private->data = of_device_get_match_data(dev);
 	private->mmsys_dev = dev->parent;
 	if (!private->mmsys_dev) {
 		dev_err(dev, "Failed to get MMSYS device\n");
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-07-04 22:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-18 11:22 [PATCH] drm/mediatek: Delete not used of_device_get_match_data matthias.bgg
2020-05-18 11:22 ` matthias.bgg
2020-05-18 11:22 ` matthias.bgg
2020-05-18 11:22 ` matthias.bgg
2020-05-18 15:23 ` Chun-Kuang Hu
2020-05-18 15:23   ` Chun-Kuang Hu
2020-05-18 15:23   ` Chun-Kuang Hu
2020-05-18 15:23   ` Chun-Kuang Hu
2020-05-18 17:44 ` Enric Balletbo i Serra
2020-05-18 17:44   ` Enric Balletbo i Serra
2020-05-18 17:44   ` Enric Balletbo i Serra
2020-05-18 17:44   ` Enric Balletbo i Serra
2020-07-04 22:19 ` Chun-Kuang Hu
2020-07-04 22:19   ` Chun-Kuang Hu
2020-07-04 22:19   ` Chun-Kuang Hu
2020-07-04 22:19   ` Chun-Kuang Hu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.