]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
spi-imx: use positive logic to distinguish cpu variants
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 13 Dec 2009 07:58:29 +0000 (00:58 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 13 Dec 2009 07:58:29 +0000 (00:58 -0700)
This is much safer when support for new variants is added.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_imx.c

index c96804f6205275673ddf17580e8a6f8d601d2830..496bf9ad16e0ae73af8b0d7e416f5876d9eb8a9c 100644 (file)
@@ -594,7 +594,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 */