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

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
Scott Wood 2007-08-14 18:37:14 +02:00 committed by Jean Delvare
parent 002cf63191
commit 322454a653

View File

@ -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: