aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ide/ppc/pmac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c
index b17e097650b1..f6a374a0de03 100644
--- a/drivers/ide/ppc/pmac.c
+++ b/drivers/ide/ppc/pmac.c
@@ -1228,12 +1228,12 @@ pmac_ide_macio_attach(struct macio_dev *mdev, const struct of_device_id *match)
1228 /* The inteface is released to the common IDE layer */ 1228 /* The inteface is released to the common IDE layer */
1229 dev_set_drvdata(&mdev->ofdev.dev, NULL); 1229 dev_set_drvdata(&mdev->ofdev.dev, NULL);
1230 iounmap(base); 1230 iounmap(base);
1231 if (pmif->dma_regs) 1231 if (pmif->dma_regs) {
1232 iounmap(pmif->dma_regs); 1232 iounmap(pmif->dma_regs);
1233 macio_release_resource(mdev, 1);
1234 }
1233 memset(pmif, 0, sizeof(*pmif)); 1235 memset(pmif, 0, sizeof(*pmif));
1234 macio_release_resource(mdev, 0); 1236 macio_release_resource(mdev, 0);
1235 if (pmif->dma_regs)
1236 macio_release_resource(mdev, 1);
1237 } 1237 }
1238 1238
1239 return rc; 1239 return rc;