]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: media: sun6i-isp: drop of_match_ptr for ID table
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 20 Jul 2023 07:18:22 +0000 (09:18 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:24:30 +0000 (09:24 +0200)
commitc8f0e924902d6b54fc3b01af18604b54eef98d1b
treedc31fd76b683a85e82e60f85952e37f33a22bd6f
parentee630b29ea44d1851bb6c903f400956604834463
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>
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c