aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_tegra.c
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2011-01-10 06:05:06 -0500
committerGrant Likely <grant.likely@secretlab.ca>2011-01-10 18:44:01 -0500
commit76d9cc454a8d0bb7484616a4b8136280068c8a8b (patch)
tree21658ce10c4c27c17676fa018c344169af566cf2 /drivers/spi/spi_tegra.c
parente0e736fc0d33861335e2a132e4f688f7fd380c61 (diff)
spi: tegra: don't treat NULL clk as an error
Some platforms have been known to return NULL from clk_get() if they support only a single struct clk. Whilst tegra doesn't do this, make the drivers consistent with others. Signed-off-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Russell King <linux@arm.linux.org.uk> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi_tegra.c')
-rw-r--r--drivers/spi/spi_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c
index bb7df02a5472..891e5909038c 100644
--- a/drivers/spi/spi_tegra.c
+++ b/drivers/spi/spi_tegra.c
@@ -513,7 +513,7 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
513 } 513 }
514 514
515 tspi->clk = clk_get(&pdev->dev, NULL); 515 tspi->clk = clk_get(&pdev->dev, NULL);
516 if (IS_ERR_OR_NULL(tspi->clk)) { 516 if (IS_ERR(tspi->clk)) {
517 dev_err(&pdev->dev, "can not get clock\n"); 517 dev_err(&pdev->dev, "can not get clock\n");
518 ret = PTR_ERR(tspi->clk); 518 ret = PTR_ERR(tspi->clk);
519 goto err2; 519 goto err2;