From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 64.mail-out.ovh.net ([91.121.185.65]) by bombadil.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1Oukji-0003xg-3Z for barebox@lists.infradead.org; Sun, 12 Sep 2010 11:28:43 +0000 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 12 Sep 2010 13:27:39 +0200 Message-Id: <1284290860-32033-3-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1284290860-32033-1-git-send-email-plagnioj@jcrosoft.com> References: <1284290860-32033-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 3/4] amba-pl011: probe fail if we can get the clock To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/amba-pl011.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index 07508d0..8ddba2e 100644 --- a/drivers/serial/amba-pl011.c +++ b/drivers/serial/amba-pl011.c @@ -34,6 +34,7 @@ #include #include #include +#include /* * We wrap our port structure around the generic console_device. @@ -160,6 +161,9 @@ static int pl011_probe(struct device_d *dev) uart->clk = clk_get(dev, NULL); + if (PTR_ERR(uart->clk) < 0) + return PTR_ERR(uart->clk); + cdev = &uart->uart; dev->type_data = cdev; cdev->dev = dev; -- 1.7.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox