mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
mtd: spinand: core: add missing MODULE_DEVICE_TABLE()
commit25fefc88c7upstream. The module misses MODULE_DEVICE_TABLE() for both SPI and OF ID tables and thus never autoloads on ID matches. Add the missing declarations. Present since day-0 of spinand framework introduction. Fixes:7529df4652("mtd: nand: Add core infrastructure to support SPI NANDs") Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210323173714.317884-1-alobakin@pm.me Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cb5305ac5b
commit
907452b3b6
|
|
@ -1173,12 +1173,14 @@ static const struct spi_device_id spinand_ids[] = {
|
||||||
{ .name = "spi-nand" },
|
{ .name = "spi-nand" },
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(spi, spinand_ids);
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
static const struct of_device_id spinand_of_ids[] = {
|
static const struct of_device_id spinand_of_ids[] = {
|
||||||
{ .compatible = "spi-nand" },
|
{ .compatible = "spi-nand" },
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, spinand_of_ids);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct spi_mem_driver spinand_drv = {
|
static struct spi_mem_driver spinand_drv = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user