[MTD] Remove unused 'nr_banks' variable from ixp2000 map driver
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
committed by
David Woodhouse
parent
2c06a08217
commit
ce5b0968b1
@@ -42,7 +42,6 @@ struct ixp2000_flash_info {
|
|||||||
struct map_info map;
|
struct map_info map;
|
||||||
struct mtd_partition *partitions;
|
struct mtd_partition *partitions;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
int nr_banks;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline unsigned long flash_bank_setup(struct map_info *map, unsigned long ofs)
|
static inline unsigned long flash_bank_setup(struct map_info *map, unsigned long ofs)
|
||||||
@@ -183,7 +182,6 @@ static int ixp2000_flash_probe(struct platform_device *dev)
|
|||||||
*/
|
*/
|
||||||
info->map.phys = NO_XIP;
|
info->map.phys = NO_XIP;
|
||||||
|
|
||||||
info->nr_banks = ixp_data->nr_banks;
|
|
||||||
info->map.size = ixp_data->nr_banks * window_size;
|
info->map.size = ixp_data->nr_banks * window_size;
|
||||||
info->map.bankwidth = 1;
|
info->map.bankwidth = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user