diff options
author | Bastian Hecht <hechtb@gmail.com> | 2012-11-07 12:40:04 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-12-06 14:05:00 +0000 |
commit | 078b6ead72a6486c479f8b95c71dcb3b93abda90 (patch) | |
tree | 74f4560b372a0ca9ef3ff6bb1220f0f84d27d772 /drivers/spi/spi-sh-msiof.c | |
parent | b3a223ee2d1a4635b0643c547bc0096a37334ed1 (diff) | |
download | linux-078b6ead72a6486c479f8b95c71dcb3b93abda90.tar.gz linux-078b6ead72a6486c479f8b95c71dcb3b93abda90.tar.bz2 linux-078b6ead72a6486c479f8b95c71dcb3b93abda90.zip |
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>
Diffstat (limited to 'drivers/spi/spi-sh-msiof.c')
-rw-r--r-- | drivers/spi/spi-sh-msiof.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 1f466bc66d9d..96358d0eabb7 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; } |