Skip to content

Commit 5751eee

Browse files
geertuAndi Shyti
authored andcommitted
i2c: nomadik: Add missing sentinel to match table
The OF match table is not NULL-terminated. Fix this by adding a sentinel to nmk_i2c_eyeq_match_table[]. Fixes: a0d15cc ("i2c: nomadik: switch from of_device_is_compatible() to of_match_device()") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Théo Lebrun <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 7363f2d commit 5751eee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-nomadik.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ static const struct of_device_id nmk_i2c_eyeq_match_table[] = {
10751075
.compatible = "mobileye,eyeq6h-i2c",
10761076
.data = (void *)NMK_I2C_EYEQ_FLAG_32B_BUS,
10771077
},
1078+
{ /* sentinel */ }
10781079
};
10791080

10801081
static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)

0 commit comments

Comments
 (0)