Commit ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce
Committed by
David Woodhouse
1 parent
2c06a08217
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/mtd/maps/ixp2000.c
... | ... | @@ -42,7 +42,6 @@ |
42 | 42 | struct map_info map; |
43 | 43 | struct mtd_partition *partitions; |
44 | 44 | struct resource *res; |
45 | - int nr_banks; | |
46 | 45 | }; |
47 | 46 | |
48 | 47 | static inline unsigned long flash_bank_setup(struct map_info *map, unsigned long ofs) |
... | ... | @@ -183,7 +182,6 @@ |
183 | 182 | */ |
184 | 183 | info->map.phys = NO_XIP; |
185 | 184 | |
186 | - info->nr_banks = ixp_data->nr_banks; | |
187 | 185 | info->map.size = ixp_data->nr_banks * window_size; |
188 | 186 | info->map.bankwidth = 1; |
189 | 187 |