[3/4] clocksource: owl: Prepare S700

Message ID 20170911022241.11603-4-afaerber@suse.de
State Superseded
Headers show
Series
  • arm64: Add initial Actions Semi S700 and CubieBoard7 support
Related show

Commit Message

Andreas Färber Sept. 11, 2017, 2:22 a.m.
S700 has two 2Hz timers like S500, and four TIMx timers like S900.

Signed-off-by: Andreas Färber <afaerber@suse.de>

---
 drivers/clocksource/owl-timer.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.5

Comments

Daniel Lezcano Sept. 18, 2017, 9:52 p.m. | #1
On 11/09/2017 04:22, Andreas Färber wrote:
> S700 has two 2Hz timers like S500, and four TIMx timers like S900.

> 

> Signed-off-by: Andreas Färber <afaerber@suse.de>

> ---

>  drivers/clocksource/owl-timer.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/clocksource/owl-timer.c b/drivers/clocksource/owl-timer.c

> index d19c53c11094..d5f3f72c10ee 100644

> --- a/drivers/clocksource/owl-timer.c

> +++ b/drivers/clocksource/owl-timer.c

> @@ -169,4 +169,5 @@ static int __init owl_timer_init(struct device_node *node)

>  	return 0;

>  }

>  CLOCKSOURCE_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init);

> +CLOCKSOURCE_OF_DECLARE(owl_s700, "actions,s700-timer", owl_timer_init);

>  CLOCKSOURCE_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init);


Can you take the opportunity to fix the deprecated
CLOCKSOURCE_OF_DECLARE by replacing it by TIMER_OF_DECLARE ?

Thanks.

  -- Daniel


-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

Patch

diff --git a/drivers/clocksource/owl-timer.c b/drivers/clocksource/owl-timer.c
index d19c53c11094..d5f3f72c10ee 100644
--- a/drivers/clocksource/owl-timer.c
+++ b/drivers/clocksource/owl-timer.c
@@ -169,4 +169,5 @@  static int __init owl_timer_init(struct device_node *node)
 	return 0;
 }
 CLOCKSOURCE_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init);
+CLOCKSOURCE_OF_DECLARE(owl_s700, "actions,s700-timer", owl_timer_init);
 CLOCKSOURCE_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init);