diff mbox

crypto: marvell - Add a NULL entry at the end of mv_cesa_plat_id_table[]

Message ID 20171103165201.18997-1-boris.brezillon@free-electrons.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show

Commit Message

Boris BREZILLON Nov. 3, 2017, 4:52 p.m. UTC
struct platform_device_id should be NULL terminated to let the core detect
where the last entry is.

Fixes: 07c50a8be41a ("crypto: marvell - Add a platform_device_id table")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
---
 drivers/crypto/marvell/cesa.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Herbert Xu Nov. 6, 2017, 7:09 a.m. UTC | #1
On Fri, Nov 03, 2017 at 05:52:01PM +0100, Boris Brezillon wrote:
> struct platform_device_id should be NULL terminated to let the core detect
> where the last entry is.
> 
> Fixes: 07c50a8be41a ("crypto: marvell - Add a platform_device_id table")
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

Patch applied.  Thanks.
diff mbox

Patch

diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c
index 577dc6773fa0..6dabb261bac4 100644
--- a/drivers/crypto/marvell/cesa.c
+++ b/drivers/crypto/marvell/cesa.c
@@ -594,6 +594,7 @@  static int mv_cesa_remove(struct platform_device *pdev)
 
 static const struct platform_device_id mv_cesa_plat_id_table[] = {
 	{ .name = "mv_crypto" },
+	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(platform, mv_cesa_plat_id_table);