Commit 03ff858c09c81a659b2a90a08826bc0abdbb784c
Committed by
Paul Mundt
1 parent
3985c7ce85
Exists in
master
and in
39 other branches
ARM: shmobile: remove sh_timer_config clk member
Now when the SH-Mobile ARM platforms have been converted to use device name it is possible to remove "clk" from struct sh_timer_config. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 4 changed files with 9 additions and 22 deletions Side-by-side Diff
drivers/clocksource/sh_cmt.c
... | ... | @@ -616,13 +616,9 @@ |
616 | 616 | /* get hold of clock */ |
617 | 617 | p->clk = clk_get(&p->pdev->dev, "cmt_fck"); |
618 | 618 | if (IS_ERR(p->clk)) { |
619 | - dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); | |
620 | - p->clk = clk_get(&p->pdev->dev, cfg->clk); | |
621 | - if (IS_ERR(p->clk)) { | |
622 | - dev_err(&p->pdev->dev, "cannot get clock\n"); | |
623 | - ret = PTR_ERR(p->clk); | |
624 | - goto err1; | |
625 | - } | |
619 | + dev_err(&p->pdev->dev, "cannot get clock\n"); | |
620 | + ret = PTR_ERR(p->clk); | |
621 | + goto err1; | |
626 | 622 | } |
627 | 623 | |
628 | 624 | if (resource_size(res) == 6) { |
drivers/clocksource/sh_mtu2.c
... | ... | @@ -287,13 +287,9 @@ |
287 | 287 | /* get hold of clock */ |
288 | 288 | p->clk = clk_get(&p->pdev->dev, "mtu2_fck"); |
289 | 289 | if (IS_ERR(p->clk)) { |
290 | - dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); | |
291 | - p->clk = clk_get(&p->pdev->dev, cfg->clk); | |
292 | - if (IS_ERR(p->clk)) { | |
293 | - dev_err(&p->pdev->dev, "cannot get clock\n"); | |
294 | - ret = PTR_ERR(p->clk); | |
295 | - goto err1; | |
296 | - } | |
290 | + dev_err(&p->pdev->dev, "cannot get clock\n"); | |
291 | + ret = PTR_ERR(p->clk); | |
292 | + goto err1; | |
297 | 293 | } |
298 | 294 | |
299 | 295 | return sh_mtu2_register(p, (char *)dev_name(&p->pdev->dev), |
drivers/clocksource/sh_tmu.c
... | ... | @@ -393,13 +393,9 @@ |
393 | 393 | /* get hold of clock */ |
394 | 394 | p->clk = clk_get(&p->pdev->dev, "tmu_fck"); |
395 | 395 | if (IS_ERR(p->clk)) { |
396 | - dev_warn(&p->pdev->dev, "using deprecated clock lookup\n"); | |
397 | - p->clk = clk_get(&p->pdev->dev, cfg->clk); | |
398 | - if (IS_ERR(p->clk)) { | |
399 | - dev_err(&p->pdev->dev, "cannot get clock\n"); | |
400 | - ret = PTR_ERR(p->clk); | |
401 | - goto err1; | |
402 | - } | |
396 | + dev_err(&p->pdev->dev, "cannot get clock\n"); | |
397 | + ret = PTR_ERR(p->clk); | |
398 | + goto err1; | |
403 | 399 | } |
404 | 400 | |
405 | 401 | return sh_tmu_register(p, (char *)dev_name(&p->pdev->dev), |