commit | 8403e2ec8d4c759f821996d3bc43ca7c512ac9a0 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Mon Nov 25 09:47:01 2013 +0100 |
committer | Tejun Heo <tj@kernel.org> | Tue Dec 03 07:40:57 2013 -0500 |
tree | 39192b6bfe266f23882bee90f0441128b2f30a62 | |
parent | c869325a45ce3369d456d7632409b675c3adb7ce [diff] |
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>