mtd: move support for struct flash_platform_data into m25p80
authorRafał Miłecki <zajec5@gmail.com>
Sun, 28 Sep 2014 20:36:54 +0000 (22:36 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 28 Sep 2014 22:27:03 +0000 (15:27 -0700)
commit32f1b7c8352fd33d41bcec3cfb054ccdcfd40a42
tree2d00a33a1d12b52cc13d4be89e4072973d27e771
parent57cf26c1b28572976c57f6dec9818be38bf37cbb
mtd: move support for struct flash_platform_data into m25p80

This "type" seems to be an extra hint for m25p80 about the flash. Some
archs register flash_platform_data with "name" set to "m25p80" and then
with a real flash name set in "type". It seems to be a trick specific
to the m25p80 so let's move it out of spi-nor.
Btw switch to the spi_nor_match_id instead of iterating spi_nor_ids.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/m25p80.c
drivers/mtd/spi-nor/spi-nor.c