diff options
author | Matthias Brugger <matthias.bgg@gmail.com> | 2020-05-18 13:22:54 +0200 |
---|---|---|
committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | 2020-07-05 06:11:50 +0800 |
commit | deb0f88b2208e9e6dbe39a0cbb3cdc458580d999 (patch) | |
tree | 5ab01eade08e9d192a26444db2c9ffaba11db053 | |
parent | e9052927941d393b4bed6f295da763172b7829f0 (diff) | |
download | linux-stable-deb0f88b2208e9e6dbe39a0cbb3cdc458580d999.tar.gz linux-stable-deb0f88b2208e9e6dbe39a0cbb3cdc458580d999.tar.bz2 linux-stable-deb0f88b2208e9e6dbe39a0cbb3cdc458580d999.zip |
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 <matthias.bgg@gmail.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index c043ec6c8166..040a8f393fe2 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -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"); |