mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/8] mtd: m25p80: add devicetree support
Date: Thu, 30 May 2013 13:49:20 +0200	[thread overview]
Message-ID: <1369914567-15650-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1369914567-15650-1-git-send-email-s.hauer@pengutronix.de>

Until we have spi device_id support match to "m25p80" for now.

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

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 048d178..57fe1f2 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -947,9 +947,18 @@ static int m25p_probe(struct device_d *dev)
 	return add_mtd_device(&flash->mtd, flash->mtd.name);
 }
 
+static __maybe_unused struct of_device_id m25p80_dt_ids[] = {
+	{
+		.compatible = "m25p80",
+	}, {
+		/* sentinel */
+	}
+};
+
 static struct driver_d m25p80_driver = {
 	.name	= "m25p80",
 	.probe	= m25p_probe,
+	.of_compatible = DRV_OF_COMPAT(m25p80_dt_ids),
 };
 device_spi_driver(m25p80_driver);
 
-- 
1.8.2.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2013-05-30 11:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 11:49 [PATCH] i.MX6: Add " Sascha Hauer
2013-05-30 11:49 ` Sascha Hauer [this message]
2013-05-30 11:49 ` [PATCH 2/8] ARM: i.MX6: Fix CCM compatible node Sascha Hauer
2013-05-30 11:49 ` [PATCH 3/8] ARM: i.MX6: skip devices register when devicetree is present Sascha Hauer
2013-05-30 11:49 ` [PATCH 4/8] ARM: i.MX6: Add devicetree files Sascha Hauer
2013-05-30 11:49 ` [PATCH 5/8] ARM: i.MX6: add imx31 compatible entry for GPT Sascha Hauer
2013-05-30 11:49 ` [PATCH 6/8] ARM: i.MX6: Add usdhc aliases Sascha Hauer
2013-05-30 11:49 ` [PATCH 7/8] ARM: i.MX6 sabrelite: switch to devicetree probing Sascha Hauer
2013-05-30 11:49 ` [PATCH 8/8] ARM: i.MX6 sabresd: Switch " Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369914567-15650-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox