linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match
@ 2021-06-07 19:08 Souptick Joarder
  2021-09-21 10:03 ` Heiko Stuebner
  0 siblings, 1 reply; 2+ messages in thread
From: Souptick Joarder @ 2021-06-07 19:08 UTC (permalink / raw)
  To: hjc, heiko, airlied, daniel
  Cc: dri-devel, linux-arm-kernel, linux-rockchip, linux-kernel,
	Souptick Joarder, kernel test robot, Robin Murphy

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().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Robin Murphy <robin.murphy@arm.com>
---
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
 	},
 };
-- 
2.25.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match
  2021-06-07 19:08 [PATCH] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match Souptick Joarder
@ 2021-09-21 10:03 ` Heiko Stuebner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2021-09-21 10:03 UTC (permalink / raw)
  To: hjc, daniel, Souptick Joarder, airlied
  Cc: Heiko Stuebner, kernel test robot, linux-rockchip,
	linux-arm-kernel, linux-kernel, dri-devel, Robin Murphy

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,
-- 
Heiko Stuebner <heiko@sntech.de>

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-21 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 19:08 [PATCH] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match Souptick Joarder
2021-09-21 10:03 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).