linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: dataflash: Remove duplicated id table
@ 2022-10-04 21:14 Colin Ian King
  2022-10-04 23:29 ` kernel test robot
  2022-10-05  5:05 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Colin Ian King @ 2022-10-04 21:14 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	u.kleine-koenig, Mark Brown, linux-mtd
  Cc: kernel-janitors, linux-kernel

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@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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-05  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 21:14 [PATCH] mtd: dataflash: Remove duplicated id table Colin Ian King
2022-10-04 23:29 ` kernel test robot
2022-10-05  5:05 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).