[PATCH v3 10/11] ARM: mmp: avoid to use cpu_is_xxx in timer
Arnd Bergmann
arnd at arndb.de
Mon Jun 3 18:34:46 EDT 2013
On Monday 03 June 2013, Haojian Zhuang wrote:
> void __init mmp_dt_init_timer(void)
> {
> struct device_node *np;
> + struct clk *clk;
> int irq, ret;
> + u32 rate = 0;
>
> np = of_find_matching_node(NULL, mmp_timer_dt_ids);
> - if (!np) {
> - ret = -ENODEV;
> - goto out;
Please use CLOCKSOURCE_OF_DECLARE() here and call clocksource_of_init()
in the platform code, rather than calling mmp_dt_init_timer directly.
Arnd
More information about the linux-arm-kernel
mailing list