clocksource: sh_cmt: Split channel setup to separate function
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 27 Jan 2014 21:04:17 +0000 (22:04 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:22:45 +0000 (09:22 +0900)
commit69bbe30e2c1131d25014294028a9fd53f8318f01
tree7e58b1184a8b867aaab632f81a8d5aedd3ad2a8b
parenta901d73d8a65b747e24a448b7b30ddefebe8754c
clocksource: sh_cmt: Split channel setup to separate function

Move the channel setup code from sh_cmt_setup to a new
sh_cmt_setup_channel function and call it from sh_cmt_setup.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
(cherry picked from commit b882e7b13bc12b3d6b00e4ea2fe374413ddcdd2d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c