mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
m25p80's device ID table is now spi_nor_ids, defined in spi-nor. The MODULE_DEVICE_TABLE() macro doesn't work with extern definitions, but its use was also removed at the same time. Now if m25p80 is built as a module it doesn't get the necessary aliases to be loaded automatically. A clean solution to this will involve defining the list of device IDs in spi-nor.h and removing struct spi_device_id from the spi-nor API, but this is quite a large change. As a quick fix suitable for stable, copy the device IDs back into m25p80. Fixes:03e296f613("mtd: m25p80: use the SPI nor framework") Cc: <[email protected]> # 3.16.x:32f1b7c835: mtd: move support for struct flash_platform_data into m25p80 Cc: <[email protected]> # 3.16.x:90e55b3812: mtd: m25p80: get rid of spi_get_device_id Cc: <[email protected]> # 3.16.x:70f3ce0510: mtd: spi-nor: make spi_nor_scan() take a chip type name, not spi_device_id Cc: <[email protected]> # 3.16.x Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Brian Norris <[email protected]>