mfd: omap-usb-host: cleanup clock management code
authorRoger Quadros <rogerq@ti.com>
Thu, 8 Nov 2012 15:40:25 +0000 (17:40 +0200)
committerRoger Quadros <rogerq@ti.com>
Wed, 13 Feb 2013 11:22:50 +0000 (13:22 +0200)
commit06ba7dc75fbf1ac731dd3ca08d5f95f552780cb2
tree0a59374e909c2bde2ef204f72666f650605b31ab
parentccac71a7f063ad31eb99fac37e95b70ff57f1354
mfd: omap-usb-host: cleanup clock management code

All ports have similarly named port clocks so we can
bunch them into a port data structure and use for loop
to enable/disable the clocks.

Dynamically allocate and get clocks based on number of ports
available on the platform

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
drivers/mfd/omap-usb-host.c