OSDN Git Service

crypto: marvell - Add a NULL entry at the end of mv_cesa_plat_id_table[]
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Fri, 3 Nov 2017 16:52:01 +0000 (17:52 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 6 Nov 2017 06:45:07 +0000 (14:45 +0800)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.c

index 2c0d6bd..2938324 100644 (file)
@@ -591,6 +591,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);