Skip to content

Commit

Permalink
[MTD] Remove unused 'nr_banks' variable from ixp2000 map driver
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Lennert Buytenhek authored and David Woodhouse committed Jun 27, 2006
1 parent 2c06a08 commit ce5b096
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/mtd/maps/ixp2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -183,7 +182,6 @@ static int ixp2000_flash_probe(struct platform_device *dev)
*/
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;

Expand Down

0 comments on commit ce5b096

Please sign in to comment.