[MTD] Remove unused 'nr_banks' variable from ixp2000 map driver

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 27 09:59:02 EDT 2006


Commit:     ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce
Parent:     2c06a0821711a53d51a3d0492a9be0671b7152e5
commit ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce
Author:     Lennert Buytenhek <buytenh at wantstofly.org>
AuthorDate: Tue Jun 27 14:36:20 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue Jun 27 14:36:20 2006 +0100

    [MTD] Remove unused 'nr_banks' variable from ixp2000 map driver
    
    Signed-off-by: Lennert Buytenhek <buytenh at wantstofly.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/ixp2000.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/ixp2000.c b/drivers/mtd/maps/ixp2000.c
index 2c9cc7f..c26488a 100644
--- a/drivers/mtd/maps/ixp2000.c
+++ b/drivers/mtd/maps/ixp2000.c
@@ -42,7 +42,6 @@ struct ixp2000_flash_info {
 	struct		map_info map;
 	struct		mtd_partition *partitions;
 	struct		resource *res;
-	int		nr_banks;
 };
 
 static inline unsigned long flash_bank_setup(struct map_info *map, unsigned long ofs)
@@ -183,7 +182,6 @@ static int ixp2000_flash_probe(struct pl
 	 */
 	info->map.phys = NO_XIP;
 
-	info->nr_banks = ixp_data->nr_banks;
 	info->map.size = ixp_data->nr_banks * window_size;
 	info->map.bankwidth = 1;
 



More information about the linux-mtd-cvs mailing list