]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 13 Feb 2013 10:53:27 +0000 (19:53 +0900)
commit6629a983206f8f6f282a88493c2f8920c0c6abee
treef1feeaad84406c2d30384bcfc84d501d37fa0b8c
parent48286ab8cb9fed405870837c7c0ccef8d98c9623
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