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 <[email protected]>
---
drivers/crypto/marvell/cesa.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.11.0
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 <[email protected]>
Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt