drm/mediatek: Delete not used of_device_get_match_data
authorMatthias Brugger <matthias.bgg@gmail.com>
Mon, 18 May 2020 11:22:54 +0000 (13:22 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sat, 4 Jul 2020 22:11:50 +0000 (06:11 +0800)
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>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c

index c043ec6c81667c49b2dfe18667514ada1f0b4cef..040a8f393fe24da31e6bcee0f6fe69c6668d6318 100644 (file)
@@ -444,7 +444,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");