* [PATCH] i2c: i2c-sh_mobile clock string removal
@ 2011-04-21 13:20 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2011-04-21 13:20 UTC (permalink / raw)
To: linux-i2c; +Cc: linux-sh, lethal, simon, ben-linux, khali, Magnus Damm
From: Magnus Damm <damm@opensource.se>
Remove the clock string magic from the i2c-sh_mobile driver
now when all platforms support clkdev properly.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
drivers/i2c/busses/i2c-sh_mobile.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- 0005/drivers/i2c/busses/i2c-sh_mobile.c
+++ work/drivers/i2c/busses/i2c-sh_mobile.c 2011-04-21 19:53:51.000000000 +0900
@@ -577,7 +577,6 @@ static int sh_mobile_i2c_probe(struct pl
struct sh_mobile_i2c_data *pd;
struct i2c_adapter *adap;
struct resource *res;
- char clk_name[8];
int size;
int ret;
@@ -587,10 +586,9 @@ static int sh_mobile_i2c_probe(struct pl
return -ENOMEM;
}
- snprintf(clk_name, sizeof(clk_name), "i2c%d", dev->id);
- pd->clk = clk_get(&dev->dev, clk_name);
+ pd->clk = clk_get(&dev->dev, NULL);
if (IS_ERR(pd->clk)) {
- dev_err(&dev->dev, "cannot get clock \"%s\"\n", clk_name);
+ dev_err(&dev->dev, "cannot get clock\n");
ret = PTR_ERR(pd->clk);
goto err;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-21 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 13:20 [PATCH] i2c: i2c-sh_mobile clock string removal Magnus Damm
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).