mtd: dataflash: remove duplicate SPI ID table
authorArnd Bergmann <arnd@arndb.de>
Thu, 15 Dec 2022 16:47:30 +0000 (17:47 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 2 Jan 2023 11:15:57 +0000 (12:15 +0100)
commita30144c02c84614ed160ab70e38fcf7b024a1bb0
tree102df107aab94aaa18532146620714c5a60bc7ea
parent1b929c02afd37871d5afb9d498426f83432e71c2
mtd: dataflash: remove duplicate SPI ID table

Building with -Werror=override-init reveals that two patches added
the same device ID table to this driver:

drivers/mtd/devices/mtd_dataflash.c:946:27: error: initialized field overwritten [-Werror=override-init]
  946 |         .id_table       = dataflash_spi_ids,
      |                           ^~~~~~~~~~~~~~~~~
drivers/mtd/devices/mtd_dataflash.c:946:27: note: (near initialization for 'dataflash_driver.id_table')

Remove one of the copies.

Fixes: 27a030e87292 ("mtd: dataflash: Add device-tree SPI IDs")
Fixes: ac4f83482afb ("mtd: dataflash: Add SPI ID table")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221215164736.1315815-1-arnd@kernel.org
drivers/mtd/devices/mtd_dataflash.c