202-MTD-DEVICES-m25p80-use-parsers-if-provided-in-flash-.patch 820 B

1234567891011121314151617181920212223242526
  1. From c7c3c338cb25d7f55ddb3f6bfbf3572758ca3896 Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski@gmail.com>
  3. Date: Thu, 10 Nov 2011 16:53:08 +0100
  4. Subject: [PATCH 50/79] MTD: DEVICES: m25p80: use parsers if provided in flash
  5. platform data
  6. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  7. ---
  8. drivers/mtd/devices/m25p80.c | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. --- a/drivers/mtd/devices/m25p80.c
  11. +++ b/drivers/mtd/devices/m25p80.c
  12. @@ -248,8 +248,10 @@ static int m25p_probe(struct spi_device
  13. if (ret)
  14. return ret;
  15. - return mtd_device_register(&nor->mtd, data ? data->parts : NULL,
  16. - data ? data->nr_parts : 0);
  17. + return mtd_device_parse_register(&nor->mtd,
  18. + data ? data->part_probe_types : NULL, NULL,
  19. + data ? data->parts : NULL,
  20. + data ? data->nr_parts : 0);
  21. }