Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1620917 > unrolled thread
| Started by | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| First post | 2017-04-11 07:30 +0200 |
| Last post | 2017-04-11 13:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] mtd: nand: NULL terminate a of_device_id table Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2017-04-11 07:30 +0200
Re: [PATCH] mtd: nand: NULL terminate a of_device_id table Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-04-11 13:40 +0200
| From | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| Date | 2017-04-11 07:30 +0200 |
| Subject | [PATCH] mtd: nand: NULL terminate a of_device_id table |
| Message-ID | <tuWxj-2Jg-7@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Boris Brezillon <boris.brezillon@free-electrons.com> |
|---|---|
| Date | 2017-04-11 13:40 +0200 |
| Message-ID | <tv2jo-6mt-23@gated-at.bofh.it> |
| In reply to | #1620917 |
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,
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web