linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / mtd / maps / ixp2000.c
index c26488a..2c9cc7f 100644 (file)
@@ -42,6 +42,7 @@ 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)
@@ -182,6 +183,7 @@ 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;