clocksource: sh_cmt: Initialize 'max_match_value' and 'lock' in sh_cmt_setup()
authorMagnus Damm <damm@opensource.se>
Fri, 14 Dec 2012 05:53:41 +0000 (14:53 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 12 Mar 2013 17:24:36 +0000 (02:24 +0900)
commit44a10f943f59339f1206d599d4269a35995e397e
treee1c93f550d7bd1d4a022de10c2519babb7b57ee8
parent2fd61b32764c82b8410a4374d0ab3ec418ce37c7
clocksource: sh_cmt: Initialize 'max_match_value' and 'lock' in sh_cmt_setup()

Move the setup of spinlock and max_match_value to sh_cmt_setup().
There's no need to defer those steps until sh_cmt_register().

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: John Stultz <john.stultz@linaro.org>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c