aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxc_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 65040de54bb7..d5aea6951d0b 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -981,7 +981,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
981 return 0; 981 return 0;
982 982
983escan: 983escan:
984 free_irq(host->irq, NULL); 984 free_irq(host->irq, host);
985eirq: 985eirq:
986 iounmap(host->regs); 986 iounmap(host->regs);
987eres: 987eres:
@@ -1001,7 +1001,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
1001 platform_set_drvdata(pdev, NULL); 1001 platform_set_drvdata(pdev, NULL);
1002 1002
1003 nand_release(&host->mtd); 1003 nand_release(&host->mtd);
1004 free_irq(host->irq, NULL); 1004 free_irq(host->irq, host);
1005 iounmap(host->regs); 1005 iounmap(host->regs);
1006 kfree(host); 1006 kfree(host);
1007 1007