summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2011-06-01 20:34:32 +0800
committerLily Zhang <r58066@freescale.com>2011-06-01 21:06:20 +0800
commitc9ff4e8abe27aec15528ac11513b71ab4aac6ba0 (patch)
treed84d8f970cc350f77f6c7922c1c3eda03788ad4a
parentaeffcdce21a314f1dd4cc6d470e6192723627720 (diff)
ENGR00144395-2 sata: remove additonal iounmap
When sata device is not found, iounmap is handled twice. This patch is to remove additional iounmap. Signed-off-by: Lily Zhang <r58066@freescale.com> (cherry picked from commit ef8705f56ee38bf50d946c3fda241a5d12657c0f)
-rw-r--r--arch/arm/plat-mxc/ahci_sata.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/ahci_sata.c b/arch/arm/plat-mxc/ahci_sata.c
index 52d5adf04139..9fc552c81836 100644
--- a/arch/arm/plat-mxc/ahci_sata.c
+++ b/arch/arm/plat-mxc/ahci_sata.c
@@ -486,7 +486,6 @@ static int sata_init(struct device *dev)
if (AHCI_SAVE_PWR_WITHOUT_HOTPLUG) {
/* Release resources when there is no device on the port */
if ((readl(mmio + PORT_SATA_SR) & 0xF) == 0) {
- iounmap(mmio);
ret = -ENODEV;
if (machine_is_mx53_smd() || machine_is_mx53_loco()
|| board_is_mx53_ard_b())