[PATCH] mtd: dataflash: Remove duplicated id table

Colin Ian King colin.i.king at gmail.com
Tue Oct 4 14:14:12 PDT 2022


A previous change added a new id table but failed to remove
the original assignment to .id_table. Remove the original
to clean up a clang scan build warning:

warning: initializer overrides prior initialization of this
subobject [-Winitializer-overrides]

Fixes: ac4f83482afb ("mtd: dataflash: Add SPI ID table")
Signed-off-by: Colin Ian King <colin.i.king at gmail.com>
---
 drivers/mtd/devices/mtd_dataflash.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index 25bad4318305..c6d25331e00c 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -939,7 +939,6 @@ static struct spi_driver dataflash_driver = {
 		.name		= "mtd_dataflash",
 		.of_match_table = of_match_ptr(dataflash_dt_ids),
 	},
-	.id_table = dataflash_dev_ids,
 
 	.probe		= dataflash_probe,
 	.remove		= dataflash_remove,
-- 
2.37.2




More information about the linux-mtd mailing list