summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2021-06-08 00:18:36 +0530
committerHeiko Stuebner <heiko@sntech.de>2021-09-21 11:53:42 +0200
commitf7fc7a79bdbf20f2edef69dc62666a4f0cdac0e3 (patch)
tree2afa4f32d7be5ec4a03de110eabe5195c30c5bcb /drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
parent87185cc823693933308bd33a190032e9c262c75f (diff)
downloadlinux-stable-f7fc7a79bdbf20f2edef69dc62666a4f0cdac0e3.tar.gz
linux-stable-f7fc7a79bdbf20f2edef69dc62666a4f0cdac0e3.tar.bz2
linux-stable-f7fc7a79bdbf20f2edef69dc62666a4f0cdac0e3.zip
drm/rockchip: remove of_match_ptr() from analogix dp driver
Kernel test robot throws below warning when CONFIG_OF is not set. >> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:457:34: warning: unused variable 'rockchip_dp_dt_ids' [-Wunused-const-variable] static const struct of_device_id rockchip_dp_dt_ids[] = { Fixed it by removing of_match_ptr(). Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Cc: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20210607184836.3502-1-jrdr.linux@gmail.com
Diffstat (limited to 'drivers/gpu/drm/rockchip/analogix_dp-rockchip.c')
-rw-r--r--drivers/gpu/drm/rockchip/analogix_dp-rockchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
index ade2327a10e2..8abb5ac26807 100644
--- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
+++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
@@ -467,6 +467,6 @@ struct platform_driver rockchip_dp_driver = {
.driver = {
.name = "rockchip-dp",
.pm = &rockchip_dp_pm_ops,
- .of_match_table = of_match_ptr(rockchip_dp_dt_ids),
+ .of_match_table = rockchip_dp_dt_ids,
},
};