Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b258fd8d authored by Magnus Lilja's avatar Magnus Lilja Committed by David Woodhouse
Browse files

mtd: mxc_nand: add correct dev_id parameter to free_irq() calls



Make sure to pass the same dev_id data to free_irq() that was
used when calling request_irq(), otherwise we get a warning about
freeing an already free IRQ.

Signed-off-by: default avatarMagnus Lilja <lilja.magnus@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 260dc003
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -981,7 +981,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
	return 0;
	return 0;


escan:
escan:
	free_irq(host->irq, NULL);
	free_irq(host->irq, host);
eirq:
eirq:
	iounmap(host->regs);
	iounmap(host->regs);
eres:
eres:
@@ -1001,7 +1001,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
	platform_set_drvdata(pdev, NULL);
	platform_set_drvdata(pdev, NULL);


	nand_release(&host->mtd);
	nand_release(&host->mtd);
	free_irq(host->irq, NULL);
	free_irq(host->irq, host);
	iounmap(host->regs);
	iounmap(host->regs);
	kfree(host);
	kfree(host);