* [PATCH] ARM: shmobile: remove sh_timer_config clk member
@ 2010-10-13 7:36 Magnus Damm
2010-10-31 14:55 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2010-10-13 7:36 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@opensource.se>
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>
---
Applies on top of the following outstanding CMT patches:
"[PATCH] clocksource: sh_cmt: One-off clockevent fix V2"
"[PATCH] clocksource: sh_cmt: Rate calculation fix"
drivers/clocksource/sh_cmt.c | 10 +++-------
drivers/clocksource/sh_mtu2.c | 10 +++-------
drivers/clocksource/sh_tmu.c | 10 +++-------
include/linux/sh_timer.h | 1 -
4 files changed, 9 insertions(+), 22 deletions(-)
--- 0007/drivers/clocksource/sh_cmt.c
+++ work/drivers/clocksource/sh_cmt.c 2010-10-13 15:51:52.000000000 +0900
@@ -616,13 +616,9 @@ static int sh_cmt_setup(struct sh_cmt_pr
/* get hold of clock */
p->clk = clk_get(&p->pdev->dev, "cmt_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;
}
if (resource_size(res) = 6) {
--- 0001/drivers/clocksource/sh_mtu2.c
+++ work/drivers/clocksource/sh_mtu2.c 2010-10-13 15:52:20.000000000 +0900
@@ -287,13 +287,9 @@ static int sh_mtu2_setup(struct sh_mtu2_
/* 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),
--- 0001/drivers/clocksource/sh_tmu.c
+++ work/drivers/clocksource/sh_tmu.c 2010-10-13 15:52:09.000000000 +0900
@@ -393,13 +393,9 @@ static int sh_tmu_setup(struct sh_tmu_pr
/* get hold of clock */
p->clk = clk_get(&p->pdev->dev, "tmu_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_tmu_register(p, (char *)dev_name(&p->pdev->dev),
--- 0001/include/linux/sh_timer.h
+++ work/include/linux/sh_timer.h 2010-10-13 15:49:08.000000000 +0900
@@ -5,7 +5,6 @@ struct sh_timer_config {
char *name;
long channel_offset;
int timer_bit;
- char *clk;
unsigned long clockevent_rating;
unsigned long clocksource_rating;
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: shmobile: remove sh_timer_config clk member
2010-10-13 7:36 [PATCH] ARM: shmobile: remove sh_timer_config clk member Magnus Damm
@ 2010-10-31 14:55 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-10-31 14:55 UTC (permalink / raw)
To: linux-sh
On Wed, Oct 13, 2010 at 04:36:38PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> 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>
This was certainly long overdue! Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-31 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 7:36 [PATCH] ARM: shmobile: remove sh_timer_config clk member Magnus Damm
2010-10-31 14:55 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.