linux/drivers/mtd/devices
Ben Hutchings a5b7616c55 mtd: m25p80,spi-nor: Fix module aliases for m25p80
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: <stable@vger.kernel.org> # 3.16.x: 32f1b7c835: mtd: move support for struct flash_platform_data into m25p80
Cc: <stable@vger.kernel.org> # 3.16.x: 90e55b3812: mtd: m25p80: get rid of spi_get_device_id
Cc: <stable@vger.kernel.org> # 3.16.x: 70f3ce0510: mtd: spi-nor: make spi_nor_scan() take a chip type name, not spi_device_id
Cc: <stable@vger.kernel.org> # 3.16.x
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2014-10-21 13:46:03 -07:00
..
bcm47xxsflash.c
bcm47xxsflash.h
block2mtd.c
docg3.c mtd: Fixed checkpatch seq_printf warnings 2014-08-19 11:53:07 -07:00
docg3.h
Kconfig
lart.c
m25p80.c mtd: m25p80,spi-nor: Fix module aliases for m25p80 2014-10-21 13:46:03 -07:00
Makefile mtd: nand: Move ELM driver and rename as omap_elm 2014-09-22 11:39:26 -07:00
ms02-nv.c
ms02-nv.h
mtd_dataflash.c
mtdram.c
phram.c mtd: phram: Fix whitespace issues 2014-07-14 10:20:19 -07:00
pmc551.c
serial_flash_cmds.h
slram.c mtd: slram: fix unused variable warning 2014-05-28 00:05:24 -07:00
spear_smi.c
sst25l.c
st_spi_fsm.c mtd: st_spi_fsm: Make of_device_id array const 2014-05-20 16:35:29 -07:00