diff options
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 14 | ||||
-rw-r--r-- | drivers/clocksource/sh_mtu2.c | 14 | ||||
-rw-r--r-- | drivers/clocksource/sh_tmu.c | 14 |
3 files changed, 21 insertions, 21 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 4ff1508e5ab7..aeb8c9b27b5b 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/err.h> | 28 | #include <linux/err.h> |
29 | #include <linux/clocksource.h> | 29 | #include <linux/clocksource.h> |
30 | #include <linux/clockchips.h> | 30 | #include <linux/clockchips.h> |
31 | #include <linux/sh_cmt.h> | 31 | #include <linux/sh_timer.h> |
32 | 32 | ||
33 | struct sh_cmt_priv { | 33 | struct sh_cmt_priv { |
34 | void __iomem *mapbase; | 34 | void __iomem *mapbase; |
@@ -59,7 +59,7 @@ static DEFINE_SPINLOCK(sh_cmt_lock); | |||
59 | 59 | ||
60 | static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) | 60 | static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) |
61 | { | 61 | { |
62 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 62 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
63 | void __iomem *base = p->mapbase; | 63 | void __iomem *base = p->mapbase; |
64 | unsigned long offs; | 64 | unsigned long offs; |
65 | 65 | ||
@@ -83,7 +83,7 @@ static inline unsigned long sh_cmt_read(struct sh_cmt_priv *p, int reg_nr) | |||
83 | static inline void sh_cmt_write(struct sh_cmt_priv *p, int reg_nr, | 83 | static inline void sh_cmt_write(struct sh_cmt_priv *p, int reg_nr, |
84 | unsigned long value) | 84 | unsigned long value) |
85 | { | 85 | { |
86 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 86 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
87 | void __iomem *base = p->mapbase; | 87 | void __iomem *base = p->mapbase; |
88 | unsigned long offs; | 88 | unsigned long offs; |
89 | 89 | ||
@@ -131,7 +131,7 @@ static unsigned long sh_cmt_get_counter(struct sh_cmt_priv *p, | |||
131 | 131 | ||
132 | static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) | 132 | static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) |
133 | { | 133 | { |
134 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 134 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
135 | unsigned long flags, value; | 135 | unsigned long flags, value; |
136 | 136 | ||
137 | /* start stop register shared by multiple timer channels */ | 137 | /* start stop register shared by multiple timer channels */ |
@@ -149,7 +149,7 @@ static void sh_cmt_start_stop_ch(struct sh_cmt_priv *p, int start) | |||
149 | 149 | ||
150 | static int sh_cmt_enable(struct sh_cmt_priv *p, unsigned long *rate) | 150 | static int sh_cmt_enable(struct sh_cmt_priv *p, unsigned long *rate) |
151 | { | 151 | { |
152 | struct sh_cmt_config *cfg = p->pdev->dev.platform_data; | 152 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
153 | int ret; | 153 | int ret; |
154 | 154 | ||
155 | /* enable clock */ | 155 | /* enable clock */ |
@@ -560,7 +560,7 @@ int sh_cmt_register(struct sh_cmt_priv *p, char *name, | |||
560 | 560 | ||
561 | static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | 561 | static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) |
562 | { | 562 | { |
563 | struct sh_cmt_config *cfg = pdev->dev.platform_data; | 563 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
564 | struct resource *res; | 564 | struct resource *res; |
565 | int irq, ret; | 565 | int irq, ret; |
566 | ret = -ENXIO; | 566 | ret = -ENXIO; |
@@ -638,7 +638,7 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) | |||
638 | static int __devinit sh_cmt_probe(struct platform_device *pdev) | 638 | static int __devinit sh_cmt_probe(struct platform_device *pdev) |
639 | { | 639 | { |
640 | struct sh_cmt_priv *p = platform_get_drvdata(pdev); | 640 | struct sh_cmt_priv *p = platform_get_drvdata(pdev); |
641 | struct sh_cmt_config *cfg = pdev->dev.platform_data; | 641 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
642 | int ret; | 642 | int ret; |
643 | 643 | ||
644 | if (p) { | 644 | if (p) { |
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c index 420566f4c501..ef02185a827a 100644 --- a/drivers/clocksource/sh_mtu2.c +++ b/drivers/clocksource/sh_mtu2.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/irq.h> | 28 | #include <linux/irq.h> |
29 | #include <linux/err.h> | 29 | #include <linux/err.h> |
30 | #include <linux/clockchips.h> | 30 | #include <linux/clockchips.h> |
31 | #include <linux/sh_mtu2.h> | 31 | #include <linux/sh_timer.h> |
32 | 32 | ||
33 | struct sh_mtu2_priv { | 33 | struct sh_mtu2_priv { |
34 | void __iomem *mapbase; | 34 | void __iomem *mapbase; |
@@ -63,7 +63,7 @@ static unsigned long mtu2_reg_offs[] = { | |||
63 | 63 | ||
64 | static inline unsigned long sh_mtu2_read(struct sh_mtu2_priv *p, int reg_nr) | 64 | static inline unsigned long sh_mtu2_read(struct sh_mtu2_priv *p, int reg_nr) |
65 | { | 65 | { |
66 | struct sh_mtu2_config *cfg = p->pdev->dev.platform_data; | 66 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
67 | void __iomem *base = p->mapbase; | 67 | void __iomem *base = p->mapbase; |
68 | unsigned long offs; | 68 | unsigned long offs; |
69 | 69 | ||
@@ -81,7 +81,7 @@ static inline unsigned long sh_mtu2_read(struct sh_mtu2_priv *p, int reg_nr) | |||
81 | static inline void sh_mtu2_write(struct sh_mtu2_priv *p, int reg_nr, | 81 | static inline void sh_mtu2_write(struct sh_mtu2_priv *p, int reg_nr, |
82 | unsigned long value) | 82 | unsigned long value) |
83 | { | 83 | { |
84 | struct sh_mtu2_config *cfg = p->pdev->dev.platform_data; | 84 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
85 | void __iomem *base = p->mapbase; | 85 | void __iomem *base = p->mapbase; |
86 | unsigned long offs; | 86 | unsigned long offs; |
87 | 87 | ||
@@ -100,7 +100,7 @@ static inline void sh_mtu2_write(struct sh_mtu2_priv *p, int reg_nr, | |||
100 | 100 | ||
101 | static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start) | 101 | static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start) |
102 | { | 102 | { |
103 | struct sh_mtu2_config *cfg = p->pdev->dev.platform_data; | 103 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
104 | unsigned long flags, value; | 104 | unsigned long flags, value; |
105 | 105 | ||
106 | /* start stop register shared by multiple timer channels */ | 106 | /* start stop register shared by multiple timer channels */ |
@@ -118,7 +118,7 @@ static void sh_mtu2_start_stop_ch(struct sh_mtu2_priv *p, int start) | |||
118 | 118 | ||
119 | static int sh_mtu2_enable(struct sh_mtu2_priv *p) | 119 | static int sh_mtu2_enable(struct sh_mtu2_priv *p) |
120 | { | 120 | { |
121 | struct sh_mtu2_config *cfg = p->pdev->dev.platform_data; | 121 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
122 | int ret; | 122 | int ret; |
123 | 123 | ||
124 | /* enable clock */ | 124 | /* enable clock */ |
@@ -243,7 +243,7 @@ int sh_mtu2_register(struct sh_mtu2_priv *p, char *name, | |||
243 | 243 | ||
244 | static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) | 244 | static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) |
245 | { | 245 | { |
246 | struct sh_mtu2_config *cfg = pdev->dev.platform_data; | 246 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
247 | struct resource *res; | 247 | struct resource *res; |
248 | int irq, ret; | 248 | int irq, ret; |
249 | ret = -ENXIO; | 249 | ret = -ENXIO; |
@@ -303,7 +303,7 @@ static int sh_mtu2_setup(struct sh_mtu2_priv *p, struct platform_device *pdev) | |||
303 | static int __devinit sh_mtu2_probe(struct platform_device *pdev) | 303 | static int __devinit sh_mtu2_probe(struct platform_device *pdev) |
304 | { | 304 | { |
305 | struct sh_mtu2_priv *p = platform_get_drvdata(pdev); | 305 | struct sh_mtu2_priv *p = platform_get_drvdata(pdev); |
306 | struct sh_mtu2_config *cfg = pdev->dev.platform_data; | 306 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
307 | int ret; | 307 | int ret; |
308 | 308 | ||
309 | if (p) { | 309 | if (p) { |
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 21bd77aa6a34..d6ea4398bf62 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/err.h> | 29 | #include <linux/err.h> |
30 | #include <linux/clocksource.h> | 30 | #include <linux/clocksource.h> |
31 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
32 | #include <linux/sh_tmu.h> | 32 | #include <linux/sh_timer.h> |
33 | 33 | ||
34 | struct sh_tmu_priv { | 34 | struct sh_tmu_priv { |
35 | void __iomem *mapbase; | 35 | void __iomem *mapbase; |
@@ -51,7 +51,7 @@ static DEFINE_SPINLOCK(sh_tmu_lock); | |||
51 | 51 | ||
52 | static inline unsigned long sh_tmu_read(struct sh_tmu_priv *p, int reg_nr) | 52 | static inline unsigned long sh_tmu_read(struct sh_tmu_priv *p, int reg_nr) |
53 | { | 53 | { |
54 | struct sh_tmu_config *cfg = p->pdev->dev.platform_data; | 54 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
55 | void __iomem *base = p->mapbase; | 55 | void __iomem *base = p->mapbase; |
56 | unsigned long offs; | 56 | unsigned long offs; |
57 | 57 | ||
@@ -69,7 +69,7 @@ static inline unsigned long sh_tmu_read(struct sh_tmu_priv *p, int reg_nr) | |||
69 | static inline void sh_tmu_write(struct sh_tmu_priv *p, int reg_nr, | 69 | static inline void sh_tmu_write(struct sh_tmu_priv *p, int reg_nr, |
70 | unsigned long value) | 70 | unsigned long value) |
71 | { | 71 | { |
72 | struct sh_tmu_config *cfg = p->pdev->dev.platform_data; | 72 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
73 | void __iomem *base = p->mapbase; | 73 | void __iomem *base = p->mapbase; |
74 | unsigned long offs; | 74 | unsigned long offs; |
75 | 75 | ||
@@ -88,7 +88,7 @@ static inline void sh_tmu_write(struct sh_tmu_priv *p, int reg_nr, | |||
88 | 88 | ||
89 | static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) | 89 | static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) |
90 | { | 90 | { |
91 | struct sh_tmu_config *cfg = p->pdev->dev.platform_data; | 91 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
92 | unsigned long flags, value; | 92 | unsigned long flags, value; |
93 | 93 | ||
94 | /* start stop register shared by multiple timer channels */ | 94 | /* start stop register shared by multiple timer channels */ |
@@ -106,7 +106,7 @@ static void sh_tmu_start_stop_ch(struct sh_tmu_priv *p, int start) | |||
106 | 106 | ||
107 | static int sh_tmu_enable(struct sh_tmu_priv *p) | 107 | static int sh_tmu_enable(struct sh_tmu_priv *p) |
108 | { | 108 | { |
109 | struct sh_tmu_config *cfg = p->pdev->dev.platform_data; | 109 | struct sh_timer_config *cfg = p->pdev->dev.platform_data; |
110 | int ret; | 110 | int ret; |
111 | 111 | ||
112 | /* enable clock */ | 112 | /* enable clock */ |
@@ -345,7 +345,7 @@ static int sh_tmu_register(struct sh_tmu_priv *p, char *name, | |||
345 | 345 | ||
346 | static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) | 346 | static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) |
347 | { | 347 | { |
348 | struct sh_tmu_config *cfg = pdev->dev.platform_data; | 348 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
349 | struct resource *res; | 349 | struct resource *res; |
350 | int irq, ret; | 350 | int irq, ret; |
351 | ret = -ENXIO; | 351 | ret = -ENXIO; |
@@ -407,7 +407,7 @@ static int sh_tmu_setup(struct sh_tmu_priv *p, struct platform_device *pdev) | |||
407 | static int __devinit sh_tmu_probe(struct platform_device *pdev) | 407 | static int __devinit sh_tmu_probe(struct platform_device *pdev) |
408 | { | 408 | { |
409 | struct sh_tmu_priv *p = platform_get_drvdata(pdev); | 409 | struct sh_tmu_priv *p = platform_get_drvdata(pdev); |
410 | struct sh_tmu_config *cfg = pdev->dev.platform_data; | 410 | struct sh_timer_config *cfg = pdev->dev.platform_data; |
411 | int ret; | 411 | int ret; |
412 | 412 | ||
413 | if (p) { | 413 | if (p) { |