]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: nand: NULL terminate a of_device_id table
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 11 Apr 2017 05:22:52 +0000 (07:22 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 25 Apr 2017 12:18:39 +0000 (14:18 +0200)
of_device_id tables should be NULL terminated.

Fixes: 07b23e3db9ed ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/atmel/nand-controller.c

index c11f358c6df69c5a96161e1ae8e1bdbd4261bfb3..3b24468961473e78f75acc254642973a8c15ff64 100644 (file)
@@ -1635,6 +1635,7 @@ static const struct of_device_id atmel_matrix_of_ids[] = {
                .compatible = "atmel,at91sam9x5-matrix",
                .data = (void *)AT91SAM9X5_MATRIX_EBICSA,
        },
+       { /* sentinel */ },
 };
 
 static int atmel_nand_controller_init(struct atmel_nand_controller *nc,