Skip to content

Commit

Permalink
i2c-mpc: Pass correct dev_id to free_irq on error path
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Scott Wood authored and Jean Delvare committed Aug 14, 2007
1 parent 002cf63 commit 322454a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 322454a

Please sign in to comment.