diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2009-12-13 02:58:29 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-13 02:58:29 -0500 |
commit | f30d59c5d34478fe5e07fd9c9e4bda6329684509 (patch) | |
tree | d88d46ddbac7c4d4bf5cd65fe2d8b8e0fa20e0a1 /drivers | |
parent | 60f675a12c03c65018beaa1d1ede41557aa60e00 (diff) |
spi-imx: use positive logic to distinguish cpu variants
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi_imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index c96804f62052..496bf9ad16e0 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c | |||
@@ -594,7 +594,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) | |||
594 | clk_enable(spi_imx->clk); | 594 | clk_enable(spi_imx->clk); |
595 | spi_imx->spi_clk = clk_get_rate(spi_imx->clk); | 595 | spi_imx->spi_clk = clk_get_rate(spi_imx->clk); |
596 | 596 | ||
597 | if (!cpu_is_mx31() || !cpu_is_mx35()) | 597 | if (cpu_is_mx1() || cpu_is_mx21() || cpu_is_mx27()) |
598 | writel(1, spi_imx->base + MXC_RESET); | 598 | writel(1, spi_imx->base + MXC_RESET); |
599 | 599 | ||
600 | /* drain receive buffer */ | 600 | /* drain receive buffer */ |