drm/mediatek: mtk_dpi: Fix unused variable 'mtk_dpi_encoder_funcs'
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 5 Oct 2020 16:22:41 +0000 (18:22 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 4 Nov 2020 23:44:10 +0000 (07:44 +0800)
commit46b97aed5484a3f44584a10f9e0691bf89d29064
tree13f1c529f55549e60c566fc31bbbf8fc3208054c
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
drm/mediatek: mtk_dpi: Fix unused variable 'mtk_dpi_encoder_funcs'

Commit f89c696e7f63 ("drm/mediatek: mtk_dpi: Convert to bridge driver")
introduced the following build warning with W=1

 drivers/gpu/drm/mediatek/mtk_dpi.c:530:39: warning: unused variable 'mtk_dpi_encoder_funcs' [-Wunused-const-variable]
 static const struct drm_encoder_funcs mtk_dpi_encoder_funcs = {

This struct is and the 'mtk_dpi_encoder_destroy()' are not needed
anymore, so remove them.

Fixes: f89c696e7f63 ("drm/mediatek: mtk_dpi: Convert to bridge driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c