Skip to contentSkip to conversation

mtd: remove drivers/mtd/mw_eeprom.c

PATCH New Heinrich Schuchardt 2 participants 2 messages Dec 27, 2020 – Jan 19, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: remove drivers/mtd/mw_eeprom.c

drivers/mtd/mw_eeprom.c contains code that never worked. mw_eeprom_write() and mw_eeprom_read() have incorrect loop conditions:

	while (len <= 2) {

CONFIG_MW_EEPROM is not set anywhere. So let's simply drop the module.

---
 drivers/mtd/Makefile    |   1 -
 drivers/mtd/mw_eeprom.c | 238 ----------------------------------------
 2 files changed, 239 deletions(-)
 delete mode 100644 drivers/mtd/mw_eeprom.c
drivers/mtd/Makefile +0 -1
index 318788c5e2..6d77ebfaa5 100644
@@ -11,7 +11,6 @@ mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o
 mtd-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
 mtd-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
 mtd-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
-mtd-$(CONFIG_MW_EEPROM) += mw_eeprom.o
 mtd-$(CONFIG_FLASH_PIC32) += pic32_flash.o
 mtd-$(CONFIG_ST_SMI) += st_smi.o
 mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o
drivers/mtd/mw_eeprom.c deleted +0 -238

238 lines not on this page · raw message

--
2.29.2

#1 lore raw

PATCH 1/1 mtd: remove drivers/mtd/mw_eeprom.c

Quoted 8 lines · Heinrich Schuchardt

drivers/mtd/mw_eeprom.c contains code that never worked. mw_eeprom_write() and mw_eeprom_read() have incorrect loop conditions:

	while (len <= 2) {

CONFIG_MW_EEPROM is not set anywhere. So let's simply drop the module.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/21ae330d/attachment.sig>