diff options
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 4 |
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 | ||
983 | escan: | 983 | escan: |
984 | free_irq(host->irq, NULL); | 984 | free_irq(host->irq, host); |
985 | eirq: | 985 | eirq: |
986 | iounmap(host->regs); | 986 | iounmap(host->regs); |
987 | eres: | 987 | eres: |
@@ -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 | ||