drm/rockchip: remove of_match_ptr() from vop_driver_dt_match
Subsystems (4)
PATCH 1/1 drm/rockchip: remove of_match_ptr() from vop_driver_dt_match
kernel test robot throws warning when CONFIG_OF not set.
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/rockchip/rockchip_vop_reg.c:1038:34:
warning: unused variable 'vop_driver_dt_match' [-Wunused-const-variable]
static const struct of_device_id vop_driver_dt_match[] = {
Fixed it by removing of_match_ptr().
Reported-by kernel test robot <[email protected]>
Signed-off-by Souptick Joarder <[email protected]>
Cc Robin Murphy <[email protected]>
--- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +1 -1
@@ -1124,6 +1124,6 @@ struct platform_driver vop_platform_driver = { .remove = vop_remove, .driver = { .name = "rockchip-vop", - .of_match_table = of_match_ptr(vop_driver_dt_match), + .of_match_table = vop_driver_dt_match, }, };
Signature · 1 line
2.25.1
Quoted 7 lines · Souptick Joarder
kernel test robot throws warning when
CONFIG_OFnot set.Quoted 1 line
Quoted 1 line
drivers/gpu/drm/rockchip/rockchip_vop_reg.c:1038:34:warning: unused variable '
vop_driver_dt_match' [-Wunused-const-variable]
static const structof_device_idvop_driver_dt_match[] = {Fixed it by removing
of_match_ptr().
Applied, thanks!
[1/1] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match
commit: 87185cc823693933308bd33a190032e9c262c75f
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>