mtd: ATMEL, AVR32: inline nand partition table access
[firefly-linux-kernel-4.4.55.git] / arch / avr32 / mach-at32ap / include / mach / board.h
index 679458d9a622365afd30fe371c229567dedc83cb..5d7ffca7d69f01bb5b28cec422b8afb702d27859 100644 (file)
@@ -128,7 +128,8 @@ struct atmel_nand_data {
        u8      ale;            /* address line number connected to ALE */
        u8      cle;            /* address line number connected to CLE */
        u8      bus_width_16;   /* buswidth is 16 bit */
-       struct mtd_partition *(*partition_info)(int size, int *num_partitions);
+       struct mtd_partition *parts;
+       unsigned int    num_parts;
 };
 struct platform_device *
 at32_add_device_nand(unsigned int id, struct atmel_nand_data *data);