[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221004211412.182940-1-colin.i.king@gmail.com>
Date: Tue, 4 Oct 2022 22:14:12 +0100
From: Colin Ian King <colin.i.king@...il.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
u.kleine-koenig@...gutronix.de, Mark Brown <broonie@...nel.org>,
linux-mtd@...ts.infradead.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] mtd: dataflash: Remove duplicated id table
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@...il.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
Powered by blists - more mailing lists