Skip to contentSkip to conversation

riscv: Add missing sentinel in ocores_i2c.c

PATCH In review Thomas Skibo 2 participants 2 messages Aug 16, 2021 – Aug 26, 2021 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: Add missing sentinel in ocores_i2c.c

The ocores_i2c.c driver is missing a sentinel at the end of the compatible strings list. This causes the "dm compat" command to spew garbage.

---
 drivers/i2c/ocores_i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/ocores_i2c.c +1 -0
index 088ba9a6a3..f129ec3818 100644
@@ -626,6 +626,7 @@ static const struct udevice_id ocores_i2c_ids[] = {
 { .compatible = "aeroflexgaisler,i2cmst", .data = TYPE_GRLIB },
 { .compatible = "sifive,fu540-c000-i2c" },
 { .compatible = "sifive,i2c0" },
+{ }
 };
 
 U_BOOT_DRIVER(i2c_ocores) = {
Signature · 1 line
2.25.1