[PATCH 1/2] mtd: spi-nor: Match jedec,spi-nor

Sascha Hauer s.hauer at pengutronix.de
Thu Feb 11 02:24:55 PST 2016


It is recommended to use jedec,spi-nor instead of specifying the exact
flash type (which is autodetected via Jedec ID anyway), so add the
compatible entry to the driver.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/devices/m25p80.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index d627690..656a7f5 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -298,6 +298,8 @@ static __maybe_unused struct of_device_id m25p80_dt_ids[] = {
 	{
 		.compatible = "m25p80",
 	}, {
+		.compatible = "jedec,spi-nor",
+	}, {
 		/* sentinel */
 	}
 };
-- 
2.7.0.rc3




More information about the barebox mailing list