Skip to contentSkip to conversation

clk: rockchip: Pass NULL as reg pointer when registering GRF MMC clocks

PATCH Applied Yao Zi 2 participants 2 messages May 10, 2025

Subsystems (2)
lore
Share & tools
lore

Yao Zi

author
#0 lore raw

PATCH 1/1 clk: rockchip: Pass NULL as reg pointer when registering GRF MMC clocks

This corrects the type and suppresses sparse warnings about passing plain integers as NULL pointer.

Fixes 621ba4d9f6db ("clk: rockchip: Support MMC clocks in GRF region")
---
 drivers/clk/rockchip/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/rockchip/clk.c +1 -1
index 43d7ed5c3418..805ab4a6f7e0 100644
@@ -622,7 +622,7 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx,
 			clk = rockchip_clk_register_mmc(
 				list->name,
 				list->parent_names, list->num_parents,
-				0,
+				NULL,
 				grf, list->muxdiv_offset,
 				list->div_shift
 			);
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Yao Zi

This corrects the type and suppresses sparse warnings about passing plain integers as NULL pointer.

Applied, thanks!

[1/1] clk: rockchip: Pass NULL as reg pointer when registering GRF MMC clocks

      commit: 61bf658a4d95e8f982b6e66dea763bff57996349

Best regards,

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