Add missing <of_device_id> table items for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo drivers/mtd/devices/mtd_dataflash.ko | grep alias alias: spi:mtd_dataflash alias: of:N*T*Catmel,dataflashC* alias: of:N*T*Catmel,dataflash alias: of:N*T*Catmel,at45C* alias: of:N*T*Catmel,at45 After this patch: modinfo drivers/mtd/devices/mtd_dataflash.ko | grep alias alias: spi:mtd_dataflash alias: of:N*T*Catmel,at45db642dC* alias: of:N*T*Catmel,at45db642d alias: of:N*T*Catmel,at45db021dC* alias: of:N*T*Catmel,at45db021d alias: of:N*T*Catmel,at45db321dC* alias: of:N*T*Catmel,at45db321d alias: of:N*T*Catmel,dataflashC* alias: of:N*T*Catmel,dataflash alias: of:N*T*Catmel,at45C* alias: of:N*T*Catmel,at45 Reported-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> Signed-off-by: Daniel Gomez <dagmcr@xxxxxxxxx> --- drivers/mtd/devices/mtd_dataflash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 53febe8..27e9a71 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c @@ -104,6 +104,9 @@ struct dataflash { static const struct of_device_id dataflash_dt_ids[] = { { .compatible = "atmel,at45", }, { .compatible = "atmel,dataflash", }, + { .compatible = "atmel,at45db321d", }, + { .compatible = "atmel,at45db021d", }, + { .compatible = "atmel,at45db642d", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, dataflash_dt_ids); -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/