From patchwork Thu Dec 23 11:12:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 430991 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 oBNN4XQW031854 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 23 Dec 2010 23:04:54 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PVj68-0000ai-L6; Thu, 23 Dec 2010 11:12:40 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PVj68-0000ac-0v for spi-devel-general@lists.sourceforge.net; Thu, 23 Dec 2010 11:12:40 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.53 as permitted sender) client-ip=74.125.82.53; envelope-from=richard.genoud@gmail.com; helo=mail-ww0-f53.google.com; Received: from mail-ww0-f53.google.com ([74.125.82.53]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.72) id 1PVj67-0001fn-34 for spi-devel-general@lists.sourceforge.net; Thu, 23 Dec 2010 11:12:39 +0000 Received: by wwi18 with SMTP id 18so5908423wwi.10 for ; Thu, 23 Dec 2010 03:12:33 -0800 (PST) Received: by 10.216.79.85 with SMTP id h63mr11478919wee.104.1293102753226; Thu, 23 Dec 2010 03:12:33 -0800 (PST) Received: from localhost.localdomain ([213.144.218.64]) by mx.google.com with ESMTPS id b30sm3664977wen.1.2010.12.23.03.12.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Dec 2010 03:12:32 -0800 (PST) From: Richard Genoud To: spi-devel-general@lists.sourceforge.net Subject: [PATCH 1/2] spi_imx.c: CSPI3 irq is 0 on imx25 Date: Thu, 23 Dec 2010 12:12:09 +0100 Message-Id: <1293102730-32528-1-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Score: -1.6 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is freemail (richard.genoud[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL X-Headers-End: 1PVj67-0001fn-34 Cc: Richard Genoud , David Brownell , linux-kernel@vger.kernel.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= 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.3 (demeter1.kernel.org [140.211.167.41]); Thu, 23 Dec 2010 23:04:54 +0000 (UTC) diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 55a38e2..793ae99 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c @@ -847,7 +847,7 @@ static int __devinit spi_imx_probe(struct platform_device *pdev) } spi_imx->irq = platform_get_irq(pdev, 0); - if (spi_imx->irq <= 0) { + if (spi_imx->irq < 0) { ret = -EINVAL; goto out_iounmap; }