From patchwork Tue Dec 8 21:14:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 65763 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB8LEsCb020303 for ; Tue, 8 Dec 2009 21:14: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 1NI7OY-00045X-2C; Tue, 08 Dec 2009 21:14:54 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NI7OW-00045D-9g for spi-devel-general@lists.sourceforge.net; Tue, 08 Dec 2009 21:14:52 +0000 X-ACL-Warn: Received: from metis.ext.pengutronix.de ([92.198.50.35]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NI7OP-0006ev-Oc for spi-devel-general@lists.sourceforge.net; Tue, 08 Dec 2009 21:14:52 +0000 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.69) (envelope-from ) id 1NI7O3-000565-Cp; Tue, 08 Dec 2009 22:14:23 +0100 Received: from ukl by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1NI7O3-0003tl-8q; Tue, 08 Dec 2009 22:14:23 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: spi-devel-general@lists.sourceforge.net Date: Tue, 8 Dec 2009 22:14:08 +0100 Message-Id: <1260306850-14945-3-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1260306850-14945-2-git-send-email-u.kleine-koenig@pengutronix.de> References: <20091208211258.GA13706@pengutronix.de> <1260306850-14945-1-git-send-email-u.kleine-koenig@pengutronix.de> <1260306850-14945-2-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: spi-devel-general@lists.sourceforge.net X-Spam-Score: -1.7 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.7 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NI7OP-0006ev-Oc Cc: David Brownell , linux-kernel@vger.kernel.org, Daniel Mack , Andrew Morton , linux-arm-kernel@lists.infradead.org Subject: [spi-devel-general] [PATCH 3/5] spi-imx: use positive logic to distinguish cpu variants 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: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index d8d9a35..0ccbd1c 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c @@ -593,7 +593,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) clk_enable(spi_imx->clk); spi_imx->spi_clk = clk_get_rate(spi_imx->clk); - if (!cpu_is_mx31() || !cpu_is_mx35()) + if (cpu_is_mx1() || cpu_is_mx21() || cpu_is_mx27()) writel(1, spi_imx->base + MXC_RESET); /* drain receive buffer */