|
@@ -287,13 +287,9 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev)
|
|
|
/* get hold of clock */
|
|
|
p->clk = clk_get(&p->pdev->dev, "mtu2_fck");
|
|
|
if (IS_ERR(p->clk)) {
|
|
|
- dev_warn(&p->pdev->dev, "using deprecated clock lookup\n");
|
|
|
- p->clk = clk_get(&p->pdev->dev, cfg->clk);
|
|
|
- if (IS_ERR(p->clk)) {
|
|
|
- dev_err(&p->pdev->dev, "cannot get clock\n");
|
|
|
- ret = PTR_ERR(p->clk);
|
|
|
- goto err1;
|
|
|
- }
|
|
|
+ dev_err(&p->pdev->dev, "cannot get clock\n");
|
|
|
+ ret = PTR_ERR(p->clk);
|
|
|
+ goto err1;
|
|
|
}
|
|
|
|
|
|
return sh_mtu2_register(p, (char *)dev_name(&p->pdev->dev),
|