|
@@ -1007,7 +1007,7 @@ static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev)
|
|
cmt->legacy = cmt->info ? false : true;
|
|
cmt->legacy = cmt->info ? false : true;
|
|
|
|
|
|
/* Get hold of clock. */
|
|
/* Get hold of clock. */
|
|
- cmt->clk = clk_get(&cmt->pdev->dev, "cmt_fck");
|
|
|
|
|
|
+ cmt->clk = clk_get(&cmt->pdev->dev, cmt->legacy ? "cmt_fck" : "fck");
|
|
if (IS_ERR(cmt->clk)) {
|
|
if (IS_ERR(cmt->clk)) {
|
|
dev_err(&cmt->pdev->dev, "cannot get clock\n");
|
|
dev_err(&cmt->pdev->dev, "cannot get clock\n");
|
|
return PTR_ERR(cmt->clk);
|
|
return PTR_ERR(cmt->clk);
|