From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ui1Me-0005Zw-Sc for barebox@lists.infradead.org; Thu, 30 May 2013 11:49:54 +0000 From: Sascha Hauer Date: Thu, 30 May 2013 13:49:20 +0200 Message-Id: <1369914567-15650-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1369914567-15650-1-git-send-email-s.hauer@pengutronix.de> References: <1369914567-15650-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/8] mtd: m25p80: add devicetree support To: barebox@lists.infradead.org Until we have spi device_id support match to "m25p80" for now. Signed-off-by: Sascha Hauer --- 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