Skip to content

Commit deb0f88

Browse files
mbggChun-Kuang Hu
authored andcommitted
drm/mediatek: Delete not used of_device_get_match_data
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 <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent e905292 commit deb0f88

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ static int mtk_drm_probe(struct platform_device *pdev)
444444
if (!private)
445445
return -ENOMEM;
446446

447-
private->data = of_device_get_match_data(dev);
448447
private->mmsys_dev = dev->parent;
449448
if (!private->mmsys_dev) {
450449
dev_err(dev, "Failed to get MMSYS device\n");

0 commit comments

Comments
 (0)