Commit c8f0e924 authored by Hans Verkuil's avatar Hans Verkuil

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
parent ee630b29
...@@ -541,7 +541,7 @@ static struct platform_driver sun6i_isp_platform_driver = { ...@@ -541,7 +541,7 @@ static struct platform_driver sun6i_isp_platform_driver = {
.remove_new = sun6i_isp_remove, .remove_new = sun6i_isp_remove,
.driver = { .driver = {
.name = SUN6I_ISP_NAME, .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, .pm = &sun6i_isp_pm_ops,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment