ARM: s5p: consolidate selection of timer register
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 May 2011 14:43:07 +0000 (15:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 May 2011 17:04:43 +0000 (18:04 +0100)
commitdf4c144f7514071a54a46eaa5a9e16299c056e29
tree5fe4b41d0572d68c13bbe5063603e02cbfddfb49
parent9ce6e0be0626a5de2aca8b769a4aa57086257156
ARM: s5p: consolidate selection of timer register

s5p duplicates the runtime selection of the timer register three times.
Move this out into a separate function.

FIXME: It is unclear whether this code needs to support true runtime
selection of the timer register, or whether it can be selected once at
init time.

Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-s5p/s5p-time.c