]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: make CLOCKSOURCE_OF_DECLARE type safe
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 Mar 2013 14:38:50 +0000 (15:38 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 Mar 2013 11:01:06 +0000 (12:01 +0100)
commitebad83d871406b940536406dc685b5810990ba43
tree7559859702f2fa02f6a4db64cf10f6c2e3f80c21
parentb7bbeee78f7779c2fa4bd87aa1b04f79e13b3449
clocksource: make CLOCKSOURCE_OF_DECLARE type safe

This ensures that a function pointer passed into CLOCKSOURCE_OF_DECLARE
takes the same arguments that we use for calling that function later.

Also fix the extraneous semicolon at end of the CLOCKSOURCE_OF_DECLARE
definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
drivers/clocksource/clksrc-of.c
drivers/clocksource/vt8500_timer.c
include/linux/clocksource.h