diff options
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 12 | ||||
-rw-r--r-- | drivers/clocksource/sh_mtu2.c | 12 | ||||
-rw-r--r-- | drivers/clocksource/sh_tmu.c | 12 |
3 files changed, 24 insertions, 12 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index a1d381171388..c5f66171a713 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -608,11 +608,15 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | |||
608 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 608 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
609 | 609 | ||
610 | /* get hold of clock */ | 610 | /* get hold of clock */ |
611 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | 611 | p->clk = clk_get(&p->pdev->dev, "cmt_fck"); |
612 | if (IS_ERR(p->clk)) { | 612 | if (IS_ERR(p->clk)) { |
613 | dev_err(&p->pdev->dev, "cannot get clock\n"); | 613 | dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); |
614 | ret = PTR_ERR(p->clk); | 614 | p->clk = clk_get(&p->pdev->dev, cfg->clk); |
615 | goto err1; | 615 | if (IS_ERR(p->clk)) { |
616 | dev_err(&p->pdev->dev, "cannot get clock\n"); | ||
617 | ret = PTR_ERR(p->clk); | ||
618 | goto err1; | ||
619 | } | ||
616 | } | 620 | } |
617 | 621 | ||
618 | if (resource_size(res) == 6) { | 622 | if (resource_size(res) == 6) { |
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index 8ce355572d16..b11882e0f1bd 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c | |||
@@ -283,11 +283,15 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) | |||
283 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 283 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
284 | 284 | ||
285 | /* get hold of clock */ | 285 | /* get hold of clock */ |
286 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | 286 | p->clk = clk_get(&p->pdev->dev, "mtu2_fck"); |
287 | if (IS_ERR(p->clk)) { | 287 | if (IS_ERR(p->clk)) { |
288 | dev_err(&p->pdev->dev, "cannot get clock\n"); | 288 | dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); |
289 | ret = PTR_ERR(p->clk); | 289 | p->clk = clk_get(&p->pdev->dev, cfg->clk); |
290 | goto err1; | 290 | if (IS_ERR(p->clk)) { |
291 | dev_err(&p->pdev->dev, "cannot get clock\n"); | ||
292 | ret = PTR_ERR(p->clk); | ||
293 | goto err1; | ||
294 | } | ||
291 | } | 295 | } |
292 | 296 | ||
293 | return sh_mtu2_register(p, (char *)dev_name(&p->pdev->dev), | 297 | return sh_mtu2_register(p, (char *)dev_name(&p->pdev->dev), |
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 34239453ebaf..6b62283c1aba 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c | |||
@@ -387,11 +387,15 @@ static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) | |||
387 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; | 387 | p->irqaction.flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL; |
388 | 388 | ||
389 | /* get hold of clock */ | 389 | /* get hold of clock */ |
390 | p->clk = clk_get(&p->pdev->dev, cfg->clk); | 390 | p->clk = clk_get(&p->pdev->dev, "tmu_fck"); |
391 | if (IS_ERR(p->clk)) { | 391 | if (IS_ERR(p->clk)) { |
392 | dev_err(&p->pdev->dev, "cannot get clock\n"); | 392 | dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); |
393 | ret = PTR_ERR(p->clk); | 393 | p->clk = clk_get(&p->pdev->dev, cfg->clk); |
394 | goto err1; | 394 | if (IS_ERR(p->clk)) { |
395 | dev_err(&p->pdev->dev, "cannot get clock\n"); | ||
396 | ret = PTR_ERR(p->clk); | ||
397 | goto err1; | ||
398 | } | ||
395 | } | 399 | } |
396 | 400 | ||
397 | return sh_tmu_register(p, (char *)dev_name(&p->pdev->dev), | 401 | return sh_tmu_register(p, (char *)dev_name(&p->pdev->dev), |