summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2023-07-20 09:18:22 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-07-25 09:24:30 +0200
commitc8f0e924902d6b54fc3b01af18604b54eef98d1b (patch)
treedc31fd76b683a85e82e60f85952e37f33a22bd6f /drivers/staging
parentee630b29ea44d1851bb6c903f400956604834463 (diff)
downloadlinux-stable-c8f0e924902d6b54fc3b01af18604b54eef98d1b.tar.gz
linux-stable-c8f0e924902d6b54fc3b01af18604b54eef98d1b.tar.bz2
linux-stable-c8f0e924902d6b54fc3b01af18604b54eef98d1b.zip
staging: media: sun6i-isp: drop of_match_ptr for ID table
The driver can match only via the DT table so the table should be always used and the of_match_ptr does not make any sense. This also fixes this !CONFIG_OF error: drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c:529:34: warning: 'sun6i_isp_of_match' defined but not used [-Wunused-const-variable=] 529 | static const struct of_device_id sun6i_isp_of_match[] = { | ^~~~~~~~~~~~~~~~~ Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c
index 0dc75adbd9d8..472057f03bc2 100644
--- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c
+++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c
@@ -541,7 +541,7 @@ static struct platform_driver sun6i_isp_platform_driver = {
.remove_new = sun6i_isp_remove,
.driver = {
.name = SUN6I_ISP_NAME,
- .of_match_table = of_match_ptr(sun6i_isp_of_match),
+ .of_match_table = sun6i_isp_of_match,
.pm = &sun6i_isp_pm_ops,
},
};