From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 3.mo1.mail-out.ovh.net ([46.105.60.232] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TV5Bk-0000Cy-9m for barebox@lists.infradead.org; Sun, 04 Nov 2012 18:44:53 +0000 Received: from mail405.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo1.mail-out.ovh.net (Postfix) with SMTP id B1B1FFFA947 for ; Sun, 4 Nov 2012 19:55:23 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 4 Nov 2012 19:42:32 +0100 Message-Id: <1352054552-20299-1-git-send-email-plagnioj@jcrosoft.com> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/1] atmel_spi: fix multiple instance support To: barebox@lists.infradead.org use device id as bus num Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/spi/atmel_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 4256572..353a24a 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c @@ -286,6 +286,7 @@ static int atmel_spi_probe(struct device_d *dev) master = &as->master; master->dev = dev; + master->bus_num = dev->id; as->clk = clk_get(dev, "spi_clk"); if (IS_ERR(as->clk)) { -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox