From patchwork Mon Jan 10 11:05:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jamie Iles X-Patchwork-Id: 468621 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0ABXbP3004038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Jan 2011 11:33:59 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PcG07-0005MC-IC; Mon, 10 Jan 2011 11:33:27 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PcG06-0005Lv-AK for spi-devel-general@lists.sourceforge.net; Mon, 10 Jan 2011 11:33:26 +0000 X-ACL-Warn: Received: from mail-wy0-f175.google.com ([74.125.82.175]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.72) id 1PcG02-0008Hv-Nr for spi-devel-general@lists.sourceforge.net; Mon, 10 Jan 2011 11:33:26 +0000 Received: by wyb40 with SMTP id 40so18637078wyb.34 for ; Mon, 10 Jan 2011 03:33:16 -0800 (PST) Received: by 10.216.4.83 with SMTP id 61mr1597170wei.67.1294657533723; Mon, 10 Jan 2011 03:05:33 -0800 (PST) Received: from localhost (ip-87-86-252-34.easynet.co.uk [87.86.252.34]) by mx.google.com with ESMTPS id p4sm14002998wer.29.2011.01.10.03.05.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 Jan 2011 03:05:33 -0800 (PST) From: Jamie Iles To: spi-devel-general@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org Subject: [PATCH] spi: tegra: don't treat NULL clk as an error Date: Mon, 10 Jan 2011 11:05:06 +0000 Message-Id: <1294657506-27510-1-git-send-email-jamie@jamieiles.com> X-Mailer: git-send-email 1.7.3.4 X-Spam-Score: -0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1PcG02-0008Hv-Nr Cc: Jamie Iles , Erik Gilling X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 10 Jan 2011 11:33:59 +0000 (UTC) diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c index bb7df02..891e590 100644 --- a/drivers/spi/spi_tegra.c +++ b/drivers/spi/spi_tegra.c @@ -513,7 +513,7 @@ static int __init spi_tegra_probe(struct platform_device *pdev) } tspi->clk = clk_get(&pdev->dev, NULL); - if (IS_ERR_OR_NULL(tspi->clk)) { + if (IS_ERR(tspi->clk)) { dev_err(&pdev->dev, "can not get clock\n"); ret = PTR_ERR(tspi->clk); goto err2;