spi/sh-msiof: Remove unneeded clock name

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@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Bastian Hecht
2012-11-07 12:40:04 +01:00
committed by Grant Likely
parent b3a223ee2d
commit 078b6ead72
+2 -4
View File
@@ -597,7 +597,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
struct resource *r; struct resource *r;
struct spi_master *master; struct spi_master *master;
struct sh_msiof_spi_priv *p; struct sh_msiof_spi_priv *p;
char clk_name[16];
int i; int i;
int ret; int ret;
@@ -614,10 +613,9 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
p->info = pdev->dev.platform_data; p->info = pdev->dev.platform_data;
init_completion(&p->done); init_completion(&p->done);
snprintf(clk_name, sizeof(clk_name), "msiof%d", pdev->id); p->clk = clk_get(&pdev->dev, NULL);
p->clk = clk_get(&pdev->dev, clk_name);
if (IS_ERR(p->clk)) { 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); ret = PTR_ERR(p->clk);
goto err1; goto err1;
} }