linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4 v2] spi: sh-msiof: Remove unneeded clock name
@ 2012-12-12 11:54 Bastian Hecht
  2012-12-12 11:54 ` [PATCH 2/4 v2] spi: Add SH Mobile series as dependency to MSIOF controller Bastian Hecht
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bastian Hecht @ 2012-12-12 11:54 UTC (permalink / raw)
  To: spi-devel-general, Grant Likely
  Cc: linux-arm-kernel@lists.infradead.org, linux-sh, Magnus Damm

From: Bastian Hecht <hechtb@gmail.com>

clk_get() no longer needs a character string for associating the right
clock as this is done via the device struct now.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
v2: no changes

 drivers/spi/spi-sh-msiof.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 1f466bc..96358d0 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -597,7 +597,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
 	struct resource	*r;
 	struct spi_master *master;
 	struct sh_msiof_spi_priv *p;
-	char clk_name[16];
 	int i;
 	int ret;
 
@@ -614,10 +613,9 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
 	p->info = pdev->dev.platform_data;
 	init_completion(&p->done);
 
-	snprintf(clk_name, sizeof(clk_name), "msiof%d", pdev->id);
-	p->clk = clk_get(&pdev->dev, clk_name);
+	p->clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(p->clk)) {
-		dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name);
+		dev_err(&pdev->dev, "cannot get clock\n");
 		ret = PTR_ERR(p->clk);
 		goto err1;
 	}
-- 
1.7.9.5


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

end of thread, other threads:[~2012-12-19 16:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12 11:54 [PATCH 1/4 v2] spi: sh-msiof: Remove unneeded clock name Bastian Hecht
2012-12-12 11:54 ` [PATCH 2/4 v2] spi: Add SH Mobile series as dependency to MSIOF controller Bastian Hecht
     [not found]   ` <1355313289-29769-2-git-send-email-hechtb+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-19 16:39     ` Grant Likely
2012-12-12 11:54 ` [PATCH 3/4 v2] spi: sh-msiof: Add device tree parsing to driver Bastian Hecht
2012-12-17  2:10   ` Nobuhiro Iwamatsu
2012-12-17 11:25     ` Bastian Hecht
     [not found]       ` <CABYn4sybRf4vxxGccCDSCEMcza4DZdaZgTD6kZ7+v9CDspzCBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-19 16:41         ` Grant Likely
2012-12-12 11:54 ` [PATCH 4/4 v2] devicetree: Add Renesas SH Mobile MSIOF spi controller binding doc Bastian Hecht
     [not found]   ` <1355313289-29769-4-git-send-email-hechtb+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-19 16:41     ` Grant Likely
     [not found] ` <1355313289-29769-1-git-send-email-hechtb+renesas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-19 16:37   ` [PATCH 1/4 v2] spi: sh-msiof: Remove unneeded clock name 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).