Skip to content

Commit 25fefc8

Browse files
solbjornmiquelraynal
authored andcommitted
mtd: spinand: core: add missing MODULE_DEVICE_TABLE()
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: 7529df4 ("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
1 parent 5c8a620 commit 25fefc8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mtd/nand/spi/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,14 @@ static const struct spi_device_id spinand_ids[] = {
12631263
{ .name = "spi-nand" },
12641264
{ /* sentinel */ },
12651265
};
1266+
MODULE_DEVICE_TABLE(spi, spinand_ids);
12661267

12671268
#ifdef CONFIG_OF
12681269
static const struct of_device_id spinand_of_ids[] = {
12691270
{ .compatible = "spi-nand" },
12701271
{ /* sentinel */ },
12711272
};
1273+
MODULE_DEVICE_TABLE(of, spinand_of_ids);
12721274
#endif
12731275

12741276
static struct spi_mem_driver spinand_drv = {

0 commit comments

Comments
 (0)