[U-Boot] [PATCH] rockchip: rk3328: fix syscon id table

Kever Yang kever.yang at rock-chips.com
Wed Sep 6 07:58:25 UTC 2017


syscon id table need a dummy member as NULL ending, or else system
will panic while try to match a compatible in this table as a list.

Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---

 arch/arm/mach-rockchip/rk3328/syscon_rk3328.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-rockchip/rk3328/syscon_rk3328.c b/arch/arm/mach-rockchip/rk3328/syscon_rk3328.c
index a1a368f..9a2c88d 100644
--- a/arch/arm/mach-rockchip/rk3328/syscon_rk3328.c
+++ b/arch/arm/mach-rockchip/rk3328/syscon_rk3328.c
@@ -11,6 +11,7 @@
 
 static const struct udevice_id rk3328_syscon_ids[] = {
 	{ .compatible = "rockchip,rk3328-grf", .data = ROCKCHIP_SYSCON_GRF },
+	{ }
 };
 
 U_BOOT_DRIVER(syscon_rk3328) = {
-- 
1.9.1



More information about the U-Boot mailing list