linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: NULL terminate a of_device_id table
@ 2017-04-11  5:22 Christophe JAILLET
  2017-04-11 11:36 ` Boris Brezillon
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2017-04-11  5:22 UTC (permalink / raw)
  To: boris.brezillon, richard, nicolas.ferre
  Cc: linux-mtd, linux-kernel, kernel-janitors, Christophe JAILLET

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>
---
 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 27301603f394..af9dd0e04261 100644
--- a/drivers/mtd/nand/atmel/nand-controller.c
+++ b/drivers/mtd/nand/atmel/nand-controller.c
@@ -1636,6 +1636,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,
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: nand: NULL terminate a of_device_id table
  2017-04-11  5:22 [PATCH] mtd: nand: NULL terminate a of_device_id table Christophe JAILLET
@ 2017-04-11 11:36 ` Boris Brezillon
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2017-04-11 11:36 UTC (permalink / raw)
  To: Christophe JAILLET
  Cc: richard, nicolas.ferre, linux-mtd, linux-kernel, kernel-janitors

On Tue, 11 Apr 2017 07:22:52 +0200
Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:

> of_device_id tables should be NULL terminated.
> 
> Fixes: 07b23e3db9ed ("mtd: nand: Cleanup/rework the atmel_nand driver")

Applied.

Thanks,

Boris

> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
>  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 27301603f394..af9dd0e04261 100644
> --- a/drivers/mtd/nand/atmel/nand-controller.c
> +++ b/drivers/mtd/nand/atmel/nand-controller.c
> @@ -1636,6 +1636,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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-11 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11  5:22 [PATCH] mtd: nand: NULL terminate a of_device_id table Christophe JAILLET
2017-04-11 11:36 ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).