[PATCH v3 04/22] mtd: spinand: add missing MODULE_DEVICE_TABLE()
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Tue Aug 5 10:14:53 CEST 2025
This is a port of linux patch 25fefc88c71f47db0466570335e3f75f10952e7a
(mtd: spinand: core: add missing MODULE_DEVICE_TABLE())
created by Alexander Lobakin <alobakin at pm.me>
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
---
drivers/mtd/nand/spi/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index d8abd03e919..34e5ac33c63 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -1285,12 +1285,14 @@ static const struct spi_device_id spinand_ids[] = {
{ .name = "spi-nand" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(spi, spinand_ids);
#ifdef CONFIG_OF
static const struct of_device_id spinand_of_ids[] = {
{ .compatible = "spi-nand" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, spinand_of_ids);
#endif
static struct spi_mem_driver spinand_drv = {
--
2.47.2
More information about the U-Boot
mailing list