ARM: 8245/1: pcmcia: soc-common: enable/disable socket clocks
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Wed, 3 Dec 2014 17:37:10 +0000 (18:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 5 Dec 2014 16:30:26 +0000 (16:30 +0000)
commit0821c3bc5df805aef1f5989b7a7dacc2491a0e5b
tree492358fbec814691376470d201ce75c0de5b54fa
parent23834a4116cd468d62e1092234e46ec1919a9e86
ARM: 8245/1: pcmcia: soc-common: enable/disable socket clocks

Call clk_prepare_enable() during hw_init() and clk_disable_unprepare()
during hw_shutdown() to ensure that the clock rates returned by
clk_get_rate() are correct.

It is safe to call enable/disable functions even on NULL clock, so this
patch will not break cases when the socket clock is not set.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/pcmcia/soc_common.c