clocksource: samsung_pwm_timer: Cache clocksource register address
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 16 Jun 2013 22:07:03 +0000 (00:07 +0200)
committerTomasz Figa <tomasz.figa@gmail.com>
Mon, 5 Aug 2013 23:21:42 +0000 (01:21 +0200)
commit61d7e2056eb6147824a8689c6e6ab62396e26321
treedd90bd05b9d577050e81f0517db00672bc04a1fd
parentceea124103c6f00561491b45133be5ccefc8ea1d
clocksource: samsung_pwm_timer: Cache clocksource register address

Instead of calculating register every time the timer should be read,
we can just do it one time at initialization and store the address in
driver data.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
drivers/clocksource/samsung_pwm_timer.c