]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: nomadik: Add missing sentinel to match table
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 6 Dec 2024 08:28:06 +0000 (09:28 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 10 Dec 2024 15:07:53 +0000 (16:07 +0100)
The OF match table is not NULL-terminated.
Fix this by adding a sentinel to nmk_i2c_eyeq_match_table[].

Fixes: a0d15cc47f29be6d ("i2c: nomadik: switch from of_device_is_compatible() to of_match_device()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-nomadik.c

index efb33802804fdde82fe6d38d4f89d0b898f1667e..d2877e4cc28d42c97f07856eb5073bb5c2545368 100644 (file)
@@ -1075,6 +1075,7 @@ static const struct of_device_id nmk_i2c_eyeq_match_table[] = {
                .compatible = "mobileye,eyeq6h-i2c",
                .data = (void *)NMK_I2C_EYEQ_FLAG_32B_BUS,
        },
+       { /* sentinel */ }
 };
 
 static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)