mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ static int fsl_i2c_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
fail_add:
|
fail_add:
|
||||||
if (i2c->irq != 0)
|
if (i2c->irq != 0)
|
||||||
free_irq(i2c->irq, NULL);
|
free_irq(i2c->irq, i2c);
|
||||||
fail_irq:
|
fail_irq:
|
||||||
iounmap(i2c->base);
|
iounmap(i2c->base);
|
||||||
fail_map:
|
fail_map:
|
||||||
|
|
Loading…
Reference in a new issue