소스 검색

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

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>
Boris BREZILLON 7 년 전
부모
커밋
9c90344648
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/crypto/marvell/cesa.c

+ 1 - 0
drivers/crypto/marvell/cesa.c

@@ -591,6 +591,7 @@ static int mv_cesa_remove(struct platform_device *pdev)
 
 
 static const struct platform_device_id mv_cesa_plat_id_table[] = {
 static const struct platform_device_id mv_cesa_plat_id_table[] = {
 	{ .name = "mv_crypto" },
 	{ .name = "mv_crypto" },
+	{ /* sentinel */ },
 };
 };
 MODULE_DEVICE_TABLE(platform, mv_cesa_plat_id_table);
 MODULE_DEVICE_TABLE(platform, mv_cesa_plat_id_table);