ahci: imx: Pull out the clock enable/disable calls
authorMarek Vasut <marex@denx.de>
Mon, 25 Nov 2013 08:47:01 +0000 (09:47 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 3 Dec 2013 12:40:57 +0000 (07:40 -0500)
commit8403e2ec8d4c759f821996d3bc43ca7c512ac9a0
tree39192b6bfe266f23882bee90f0441128b2f30a62
parentc869325a45ce3369d456d7632409b675c3adb7ce
ahci: imx: Pull out the clock enable/disable calls

The same code for enabling and disabling SATA clock was found in multiple
places in the driver. Implement functions that enable/disable the SATA clock
and use them in such places instead of duplicating the code.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Richard Zhu <r65037@freescale.com>
Cc: Linux-IDE <linux-ide@vger.kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_imx.c