[PATCH 8/9] rockchip: rk3506: Remove unneeded syscon driver

Jonas Karlman <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Modern Rockchip device drivers use syscon_regmap_lookup_by_phandle()
to get a regmap or use a constant to get the fixed base address.

Remove the unneeded RK3506 syscon driver to discourage new uses of
syscon_get_regmap_by_driver_data() or syscon_get_first_range().

The generic_syscon driver will instead be used for the compatible
previously matched by the now removed driver.

Signed-off-by: Jonas Karlman <[email protected]>
---
 arch/arm/mach-rockchip/rk3506/Makefile        |  1 -
 arch/arm/mach-rockchip/rk3506/syscon_rk3506.c | 19 -------------------
 2 files changed, 20 deletions(-)
 delete mode 100644 arch/arm/mach-rockchip/rk3506/syscon_rk3506.c

diff --git a/arch/arm/mach-rockchip/rk3506/Makefile b/arch/arm/mach-rockchip/rk3506/Makefile
index a1760bd0f0a3..63a6c2c2d18d 100644
--- a/arch/arm/mach-rockchip/rk3506/Makefile
+++ b/arch/arm/mach-rockchip/rk3506/Makefile
@@ -2,4 +2,3 @@
 
 obj-y += rk3506.o
 obj-y += clk_rk3506.o
-obj-y += syscon_rk3506.o
diff --git a/arch/arm/mach-rockchip/rk3506/syscon_rk3506.c b/arch/arm/mach-rockchip/rk3506/syscon_rk3506.c
deleted file mode 100644
index 2548b0fa2d3a..000000000000
--- a/arch/arm/mach-rockchip/rk3506/syscon_rk3506.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-// Copyright Contributors to the U-Boot project.
-
-#include <dm.h>
-#include <asm/arch-rockchip/clock.h>
-
-static const struct udevice_id rk3506_syscon_ids[] = {
-	{ .compatible = "rockchip,rk3506-grf", .data = ROCKCHIP_SYSCON_GRF },
-	{ }
-};
-
-U_BOOT_DRIVER(rockchip_rk3506_syscon) = {
-	.name = "rockchip_rk3506_syscon",
-	.id = UCLASS_SYSCON,
-	.of_match = rk3506_syscon_ids,
-#if CONFIG_IS_ENABLED(OF_REAL)
-	.bind = dm_scan_fdt_dev,
-#endif
-};
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.