Skip to contentSkip to conversation

drm/rockchip: remove of_match_ptr()

PATCH Applied Souptick Joarder 2 participants 2 messages Jun 7, 2021 – Sep 21, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/rockchip: remove of_match_ptr()

Kernel test robot throws below warning when CONFIG_OF is not set.

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:457:34:

warning: unused variable 'rockchip_dp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id rockchip_dp_dt_ids[] = {

Fixed it by removing of_match_ptr().

---
v2:
Address review comment from Robin.
updated change logs and subject line.

 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +1 -1
index ade2327a10e2..8abb5ac26807 100644
@@ -467,6 +467,6 @@ struct platform_driver rockchip_dp_driver = {
 	.driver = {
 		   .name = "rockchip-dp",
 		   .pm = &rockchip_dp_pm_ops,
-		   .of_match_table = of_match_ptr(rockchip_dp_dt_ids),
+		   .of_match_table = rockchip_dp_dt_ids,
 	},
 };
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Souptick Joarder

Kernel test robot throws below warning when CONFIG_OF is not set.

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:457:34:

warning: unused variable 'rockchip_dp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id rockchip_dp_dt_ids[] = {

[...]

Applied, thanks!

[1/1] drm/rockchip: remove of_match_ptr()

      commit: f7fc7a79bdbf20f2edef69dc62666a4f0cdac0e3

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>