Re: [PATCH] clocksource: nps: fix nps_timer_init return value

2016-06-15 Thread Daniel Lezcano
On 06/13/2016 10:41 PM, Arnd Bergmann wrote: The CLOCKSOURCE_OF_DECLARE macro ensures that the type of the init function matches the caller. In case of the new timer-nps driver, it doesn't match, so we get a warning: ../drivers/clocksource/timer-nps.c:97:208: error: comparison of distinct

Re: [PATCH] clocksource: nps: fix nps_timer_init return value

2016-06-15 Thread Daniel Lezcano
On 06/13/2016 10:41 PM, Arnd Bergmann wrote: The CLOCKSOURCE_OF_DECLARE macro ensures that the type of the init function matches the caller. In case of the new timer-nps driver, it doesn't match, so we get a warning: ../drivers/clocksource/timer-nps.c:97:208: error: comparison of distinct

[PATCH] clocksource: nps: fix nps_timer_init return value

2016-06-13 Thread Arnd Bergmann
The CLOCKSOURCE_OF_DECLARE macro ensures that the type of the init function matches the caller. In case of the new timer-nps driver, it doesn't match, so we get a warning: ../drivers/clocksource/timer-nps.c:97:208: error: comparison of distinct pointer types lacks a cast [-Werror]

[PATCH] clocksource: nps: fix nps_timer_init return value

2016-06-13 Thread Arnd Bergmann
The CLOCKSOURCE_OF_DECLARE macro ensures that the type of the init function matches the caller. In case of the new timer-nps driver, it doesn't match, so we get a warning: ../drivers/clocksource/timer-nps.c:97:208: error: comparison of distinct pointer types lacks a cast [-Werror]