Skip to contentSkip to conversation

MTD: remove mtd_info->bank_size

PATCH Applied Martin Waitz 2 participants 2 messages Apr 23, 2006 – Apr 24, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MTD: remove mtd_info->bank_size

According to the comment the variable should go away in 2.5. There are no in-tree users of this variable left.

---

 drivers/mtd/mtdpart.c   |    1 -
 include/linux/mtd/mtd.h |    3 ---
 2 files changed, 0 insertions(+), 4 deletions(-)

e973bcb6279c0d772afe4e969a3323265dcb0e00

drivers/mtd/mtdpart.c +0 -1
index 9939591..41cbe11 100644
@@ -404,7 +404,6 @@ int add_mtd_partitions(struct mtd_info *
 		slave->mtd.eccsize = master->eccsize;
 
 		slave->mtd.name = parts[i].name;
-		slave->mtd.bank_size = master->bank_size;
 		slave->mtd.owner = master->owner;
 
 		slave->mtd.read = part_read;
include/linux/mtd/mtd.h +0 -3
index 886f481..e267370 100644
@@ -97,9 +97,6 @@ #define MTD_PROGREGION_CTRLMODE_INVALID(
 	int numeraseregions;
 	struct mtd_erase_region_info *eraseregions;
 
-	/* This really shouldn't be here. It can go away in 2.5 */
-	u_int32_t bank_size;
-
 	int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
 
 	/* This stuff for eXecute-In-Place */
Signature · 5 lines
1.3.0.gc5417


-- 
Martin Waitz
Applied
#1 lore raw
Quoted 5 lines · Martin Waitz

According to the comment the variable should go away in 2.5. There are no in-tree users of this variable left.

Applied, thanks.

Jörn

Signature · 3 lines
It is better to die of hunger having lived without grief and fear,
than to live with a troubled spirit amid abundance.
-- Epictetus