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:
parent
002cf63191
commit
322454a653
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user