Message ID | 20210607190800.3992-1-jrdr.linux@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/rockchip: remove of_match_ptr() from vop_driver_dt_match | expand |
On Tue, 8 Jun 2021 00:38:00 +0530, Souptick Joarder wrote: > kernel test robot throws warning when CONFIG_OF not set. > > >> 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(). Applied, thanks! [1/1] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match commit: 87185cc823693933308bd33a190032e9c262c75f Best regards,
diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index ca7cc82125cb..1f7353f0684a 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -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, }, };