Skip to content

Commit

Permalink
spi-imx: use positive logic to distinguish cpu variants
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Grant Likely committed Dec 13, 2009
1 parent 60f675a commit f30d59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f30d59c

Please sign in to comment.