diff mbox series

[v1,09/12] arch: rockchip: rk3188: Update syscon driver binding method

Message ID 20240806043849.3607-10-linux.amoon@gmail.com
State Changes Requested
Delegated to: Kever Yang
Headers show
Series Bind Syscon driver with OF_REAL | expand

Commit Message

Anand Moon Aug. 6, 2024, 4:38 a.m. UTC
Updated the binding method to use `dm_scan_fdt_dev` when
OF_REAL` is enabled.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 arch/arm/mach-rockchip/rk3188/syscon_rk3188.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c
index 6df054e5b27..bcd7870c503 100644
--- a/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c
+++ b/arch/arm/mach-rockchip/rk3188/syscon_rk3188.c
@@ -19,6 +19,9 @@  static const struct udevice_id rk3188_syscon_ids[] = {
 U_BOOT_DRIVER(syscon_rk3188) = {
 	.name = "rk3188_syscon",
 	.id = UCLASS_SYSCON,
+#if CONFIG_IS_ENABLED(OF_REAL)
+	.bind = dm_scan_fdt_dev,
+#endif
 	.of_match = rk3188_syscon_ids,
 };