linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 01/10] spi: tegra: Do not use clock name to get clock
@ 2013-01-11  8:01 Prashant Gaikwad
  2013-01-11  8:01 ` [PATCH v2 02/10] ARM: dt: tegra20: Add clock information Prashant Gaikwad
                   ` (9 more replies)
  0 siblings, 10 replies; 21+ messages in thread
From: Prashant Gaikwad @ 2013-01-11  8:01 UTC (permalink / raw)
  To: linux-arm-kernel

Since Tegra spi devices do not have multiple clocks, no need to use
clock name to get the clock.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
---
This series depends on v4 of Tegra's ccf-rework patch series.
Tested on Ventana (Tegra20) and Cardhu (Tegra30).
Rebased on Tegra's for-3.9/soc and for-3.9/cleanup.

Changes from V1:
- Fixed clock lookup for SPI and nvec drivers.
- Add clock information for nvec in device tree.
---
 drivers/spi/spi-tegra20-sflash.c |    2 +-
 drivers/spi/spi-tegra20-slink.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c
index 02feaa5..e5dce91 100644
--- a/drivers/spi/spi-tegra20-sflash.c
+++ b/drivers/spi/spi-tegra20-sflash.c
@@ -525,7 +525,7 @@ static int tegra_sflash_probe(struct platform_device *pdev)
 		goto exit_free_master;
 	}
 
-	tsd->clk = devm_clk_get(&pdev->dev, "spi");
+	tsd->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(tsd->clk)) {
 		dev_err(&pdev->dev, "can not get clock\n");
 		ret = PTR_ERR(tsd->clk);
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c
index fa208a5..e255e7a 100644
--- a/drivers/spi/spi-tegra20-slink.c
+++ b/drivers/spi/spi-tegra20-slink.c
@@ -1191,7 +1191,7 @@ static int tegra_slink_probe(struct platform_device *pdev)
 		goto exit_free_master;
 	}
 
-	tspi->clk = devm_clk_get(&pdev->dev, "slink");
+	tspi->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(tspi->clk)) {
 		dev_err(&pdev->dev, "can not get clock\n");
 		ret = PTR_ERR(tspi->clk);
-- 
1.7.4.1

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

end of thread, other threads:[~2013-01-17  6:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11  8:01 [PATCH v2 01/10] spi: tegra: Do not use clock name to get clock Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 02/10] ARM: dt: tegra20: Add clock information Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 03/10] ARM: dt: tegra30: " Prashant Gaikwad
2013-01-16  8:01   ` Terje Bergström
2013-01-16 17:28     ` Stephen Warren
2013-01-17  6:33       ` Terje Bergström
2013-01-11  8:01 ` [PATCH v2 04/10] ARM: dt: tegra: paz00: add " Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 05/10] staging: nvec: remove use of clk_get_sys Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 06/10] ASoC: tegra: remove auxdata Prashant Gaikwad
2013-01-11 20:59   ` Stephen Warren
2013-01-11 21:05     ` Mark Brown
2013-01-11  8:01 ` [PATCH v2 07/10] arm: tegra20: " Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 08/10] arm: tegra30: " Prashant Gaikwad
2013-01-11  8:01 ` [PATCH v2 09/10] clk: tegra20: remove unused TEGRA_CLK_DUPLICATE()s Prashant Gaikwad
2013-01-11 21:00   ` Stephen Warren
2013-01-14 20:56     ` Mike Turquette
2013-01-11  8:01 ` [PATCH v2 10/10] clk: tegra30: " Prashant Gaikwad
2013-01-11 21:01   ` Stephen Warren
2013-01-14 20:58     ` Mike Turquette
2013-01-11 20:58 ` [PATCH v2 01/10] spi: tegra: Do not use clock name to get clock Stephen Warren
2013-01-14 20:17   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).