mtd: nand: NULL terminate a of_device_id table

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 10 19:59:13 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=038e8ad6eb720d0b362183f1c30470c1e0797e39
Commit:     038e8ad6eb720d0b362183f1c30470c1e0797e39
Parent:     70106ddaf31150a57dc00b3d7d5167f693b521ef
Author:     Christophe Jaillet <christophe.jaillet at wanadoo.fr>
AuthorDate: Tue Apr 11 07:22:52 2017 +0200
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Tue Apr 25 14:18:39 2017 +0200

    mtd: nand: NULL terminate a of_device_id table
    
    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 at wanadoo.fr>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/atmel/nand-controller.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nand-controller.c
index c11f358..3b24468 100644
--- a/drivers/mtd/nand/atmel/nand-controller.c
+++ b/drivers/mtd/nand/atmel/nand-controller.c
@@ -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,



More information about the linux-mtd-cvs mailing list