public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] spi: tegra: don't treat NULL clk as an error
@ 2011-01-10 11:05 Jamie Iles
  2011-01-10 20:58 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Jamie Iles @ 2011-01-10 11:05 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Cc: Erik Gilling <konkers@android.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
---

 drivers/spi/spi_tegra.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c
index bb7df02..891e590 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)
 	}
 
 	tspi->clk = clk_get(&pdev->dev, NULL);
-	if (IS_ERR_OR_NULL(tspi->clk)) {
+	if (IS_ERR(tspi->clk)) {
 		dev_err(&pdev->dev, "can not get clock\n");
 		ret = PTR_ERR(tspi->clk);
 		goto err2;
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-10 23:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 11:05 [PATCH] spi: tegra: don't treat NULL clk as an error Jamie Iles
2011-01-10 20:58 ` Grant Likely
2011-01-10 22:18   ` Russell King - ARM Linux
2011-01-10 22:25     ` Russell King - ARM Linux
2011-01-10 23:24       ` Grant Likely
2011-01-10 23:30         ` Russell King - ARM Linux
2011-01-10 23:43           ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox