瀏覽代碼

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>
Magnus Damm 14 年之前
父節點
當前提交
03ff858c09
共有 4 個文件被更改,包括 9 次插入22 次删除
  1. 3 7
      drivers/clocksource/sh_cmt.c
  2. 3 7
      drivers/clocksource/sh_mtu2.c
  3. 3 7
      drivers/clocksource/sh_tmu.c
  4. 0 1
      include/linux/sh_timer.h

+ 3 - 7
drivers/clocksource/sh_cmt.c

@@ -616,13 +616,9 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev)
 	/* get hold of clock */
 	/* get hold of clock */
 	p->clk = clk_get(&p->pdev->dev, "cmt_fck");
 	p->clk = clk_get(&p->pdev->dev, "cmt_fck");
 	if (IS_ERR(p->clk)) {
 	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;
 	}
 	}
 
 
 	if (resource_size(res) == 6) {
 	if (resource_size(res) == 6) {

+ 3 - 7
drivers/clocksource/sh_mtu2.c

@@ -287,13 +287,9 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev)
 	/* get hold of clock */
 	/* get hold of clock */
 	p->clk = clk_get(&p->pdev->dev, "mtu2_fck");
 	p->clk = clk_get(&p->pdev->dev, "mtu2_fck");
 	if (IS_ERR(p->clk)) {
 	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),
 	return sh_mtu2_register(p, (char *)dev_name(&p->pdev->dev),

+ 3 - 7
drivers/clocksource/sh_tmu.c

@@ -393,13 +393,9 @@ static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev)
 	/* get hold of clock */
 	/* get hold of clock */
 	p->clk = clk_get(&p->pdev->dev, "tmu_fck");
 	p->clk = clk_get(&p->pdev->dev, "tmu_fck");
 	if (IS_ERR(p->clk)) {
 	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_tmu_register(p, (char *)dev_name(&p->pdev->dev),
 	return sh_tmu_register(p, (char *)dev_name(&p->pdev->dev),

+ 0 - 1
include/linux/sh_timer.h

@@ -5,7 +5,6 @@ struct sh_timer_config {
 	char *name;
 	char *name;
 	long channel_offset;
 	long channel_offset;
 	int timer_bit;
 	int timer_bit;
-	char *clk;
 	unsigned long clockevent_rating;
 	unsigned long clockevent_rating;
 	unsigned long clocksource_rating;
 	unsigned long clocksource_rating;
 };
 };