* [PATCH] net: e1000: Fix mtd compilation
@ 2021-03-12 15:14 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2021-03-12 15:14 UTC (permalink / raw)
To: Barebox List
mtd function hooks have been renamed to start with an underscore. Fix
e1000 driver accordingly.
Fixes: 4d3c779dfc ("mtd: Add underscore prefix to mtd hooks")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/net/e1000/eeprom.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/e1000/eeprom.c b/drivers/net/e1000/eeprom.c
index 900be2f09b..5a7d8675ce 100644
--- a/drivers/net/e1000/eeprom.c
+++ b/drivers/net/e1000/eeprom.c
@@ -1614,12 +1614,12 @@ int e1000_register_eeprom(struct e1000_hw *hw)
}
if (eecd & E1000_EECD_I210_FLASH_DETECTED) {
- hw->mtd.parent = hw->dev;
- hw->mtd.read = e1000_mtd_read;
- hw->mtd.write = e1000_mtd_write;
- hw->mtd.erase = e1000_mtd_erase;
- hw->mtd.lock = e1000_mtd_lock;
- hw->mtd.unlock = e1000_mtd_unlock;
+ hw->mtd.dev.parent = hw->dev;
+ hw->mtd._read = e1000_mtd_read;
+ hw->mtd._write = e1000_mtd_write;
+ hw->mtd._erase = e1000_mtd_erase;
+ hw->mtd._lock = e1000_mtd_lock;
+ hw->mtd._unlock = e1000_mtd_unlock;
hw->mtd.size = eeprom->word_size * 2;
hw->mtd.writesize = 1;
hw->mtd.subpage_sft = 0;
--
2.29.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-12 15:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 15:14 [PATCH] net: e1000: Fix mtd compilation Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox