MIPS: generic: Fix ranchu_of_match[] termination
authorJames Hogan <jhogan@kernel.org>
Fri, 2 Feb 2018 22:14:10 +0000 (22:14 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 5 Feb 2018 10:39:51 +0000 (10:39 +0000)
ranchu_of_match[] has no terminating element to end the search for a
matching compatible string when the first and only element does not
match, so add one now.

Fixes: f2d0b0d5c171 ("MIPS: ranchu: Add Ranchu as a new generic-based board")
Signed-off-by: James Hogan <jhogan@kernel.org>
Reviewed-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Miodrag Dinic <miodrag.dinic@mips.com>
Cc: Goran Ferenc <goran.ferenc@mips.com>
Cc: Aleksandar Markovic <aleksandar.markovic@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18581/

arch/mips/generic/board-ranchu.c

index ea451b89bb53d4d7562b62ba67d80168295d9d53..59a8c18fa2cca83d0ec2d5253d397d6d3361c149 100644 (file)
@@ -84,6 +84,7 @@ static const struct of_device_id ranchu_of_match[] __initconst = {
        {
                .compatible = "mti,ranchu",
        },
+       {}
 };
 
 MIPS_MACHINE(ranchu) = {