diff options
-rwxr-xr-x | arch/arm/mach-mx5/board-mx53_loco.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 56f88d185a95..257933af0177 100755 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -480,9 +480,9 @@ static int mx53_loco_sata_init(struct device *dev, void __iomem *addr) tmpdata = clk_get_rate(clk) / 1000; clk_put(clk); - sata_init(addr, tmpdata); - - return ret; + ret = sata_init(addr, tmpdata); + if (ret == 0) + return ret; release_sata_ref_clk: clk_disable(sata_ref_clk); |