mfd: omap-usb-tll: Clean up clock handling
authorRoger Quadros <rogerq@ti.com>
Thu, 8 Nov 2012 11:07:09 +0000 (13:07 +0200)
committerRoger Quadros <rogerq@ti.com>
Wed, 13 Feb 2013 11:22:39 +0000 (13:22 +0200)
commit0bde3e9fee74b668857b1664a70998d02807fb5b
tree77e948b1f22841e559be2e1c2d0cb6cdd392466d
parent1a7a8d70cddcf4f6847e42b414da1c3113675873
mfd: omap-usb-tll: Clean up clock handling

Every channel has a functional clock that is similarly named.
It makes sense to use a for loop to manage these clocks as OMAPs
can come with up to 3 channels.

Dynamically allocate and get channel clocks depending on the
number of clocks avaiable on the platform.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mfd/omap-usb-tll.c