mmc: omap_hsmmc: introduce start_clock and re-use stop_clock
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Fri, 6 May 2011 09:14:05 +0000 (12:14 +0300)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:02 +0000 (10:35 -0400)
commite0c7f99b863b485ad0cde371ea1f62ec8ff70c5d
tree66b39be4541469ffab16d44debc63e1a4368f3f9
parentac330f44c6bcc5f8ef7eb6ea7fd00575a1d5ef1a
mmc: omap_hsmmc: introduce start_clock and re-use stop_clock

There is similar code in two functions which enable the clock.  Refactor
this code to omap_hsmmc_start_clock(). Re-use omap_hsmmc_stop_clock() in
omap_hsmmc_context_restore() as well.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c