diff options
Diffstat (limited to 'drivers/clocksource/sh_cmt.c')
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 12 |
1 files changed, 8 insertions, 4 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) { |