clocksource: samsung_pwm_timer: Use proper clockevents max_delta
authorTomasz Figa <t.figa@samsung.com>
Tue, 23 Apr 2013 15:46:28 +0000 (17:46 +0200)
committerOlof Johansson <olof@lixom.net>
Sun, 28 Apr 2013 19:16:57 +0000 (12:16 -0700)
commite9b852b8a7bc0217a03afff07fad34093e087542
tree4f6b5d1fd95e329cfad5127e73649356209a67cc
parentf9bb48a2c25a96757d13795ba7cc52687f94446f
clocksource: samsung_pwm_timer: Use proper clockevents max_delta

This patch replaces hardcoded -1 argument passed to
clockevents_config_and_register() with tcnt_max calculated based on
variant data.

This fixes invalid max delta configuration for 16-bit timers of s3c24xx.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/clocksource/samsung_pwm_timer.c