[PATCH v1 03/12] arm: rockchip: rv1126: Remove unused syscon drivers code

Anand Moon linux.amoon at gmail.com
Tue Aug 6 06:38:40 CEST 2024


Since commit 95397385091d ("treewide: Use OF_REAL instead of !OF_PLATDATA"),
the OF_PLATDATA code, As OF_PLATDATA is no longer enabled, the related
code is removed.

Signed-off-by: Anand Moon <linux.amoon at gmail.com>
---
 arch/arm/mach-rockchip/rv1126/syscon_rv1126.c | 24 -------------------
 1 file changed, 24 deletions(-)

diff --git a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
index d66d84c836d..4c0690f1ba2 100644
--- a/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
+++ b/arch/arm/mach-rockchip/rv1126/syscon_rv1126.c
@@ -23,27 +23,3 @@ U_BOOT_DRIVER(syscon_rv1126) = {
 #endif
 	.of_match = rv1126_syscon_ids,
 };
-
-#if CONFIG_IS_ENABLED(OF_PLATDATA)
-static int rv1126_syscon_bind_of_plat(struct udevice *dev)
-{
-	dev->driver_data = dev->driver->of_match->data;
-	debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data);
-
-	return 0;
-}
-
-U_BOOT_DRIVER(rockchip_rv1126_pmu) = {
-	.name = "rockchip_rv1126_pmu",
-	.id = UCLASS_SYSCON,
-	.of_match = rv1126_syscon_ids,
-	.bind = rv1126_syscon_bind_of_plat,
-};
-
-U_BOOT_DRIVER(rockchip_rv1126_pmugrf) = {
-	.name = "rockchip_rv1126_pmugrf",
-	.id = UCLASS_SYSCON,
-	.of_match = rv1126_syscon_ids + 1,
-	.bind = rv1126_syscon_bind_of_plat,
-};
-#endif
-- 
2.46.0



More information about the U-Boot mailing list