Commit 322454a6 authored by Scott Wood's avatar Scott Wood Committed by Jean Delvare

i2c-mpc: Pass correct dev_id to free_irq on error path

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 002cf631
......@@ -362,7 +362,7 @@ static int fsl_i2c_probe(struct platform_device *pdev)
fail_add:
if (i2c->irq != 0)
free_irq(i2c->irq, NULL);
free_irq(i2c->irq, i2c);
fail_irq:
iounmap(i2c->base);
fail_map:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment