diff options
-rw-r--r-- | drivers/i2c/busses/i2c-sh_mobile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 2707f5e17158..5a1d37d0b62f 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c | |||
@@ -577,7 +577,6 @@ static int sh_mobile_i2c_probe(struct platform_device *dev) | |||
577 | struct sh_mobile_i2c_data *pd; | 577 | struct sh_mobile_i2c_data *pd; |
578 | struct i2c_adapter *adap; | 578 | struct i2c_adapter *adap; |
579 | struct resource *res; | 579 | struct resource *res; |
580 | char clk_name[8]; | ||
581 | int size; | 580 | int size; |
582 | int ret; | 581 | int ret; |
583 | 582 | ||
@@ -587,10 +586,9 @@ static int sh_mobile_i2c_probe(struct platform_device *dev) | |||
587 | return -ENOMEM; | 586 | return -ENOMEM; |
588 | } | 587 | } |
589 | 588 | ||
590 | snprintf(clk_name, sizeof(clk_name), "i2c%d", dev->id); | 589 | pd->clk = clk_get(&dev->dev, NULL); |
591 | pd->clk = clk_get(&dev->dev, clk_name); | ||
592 | if (IS_ERR(pd->clk)) { | 590 | if (IS_ERR(pd->clk)) { |
593 | dev_err(&dev->dev, "cannot get clock \"%s\"\n", clk_name); | 591 | dev_err(&dev->dev, "cannot get clock\n"); |
594 | ret = PTR_ERR(pd->clk); | 592 | ret = PTR_ERR(pd->clk); |
595 | goto err; | 593 | goto err; |
596 | } | 594 | } |