Commit 5257a633 authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi

usb: gadget: mv_u3d_core: fix to pass correct device identity to free_irq()

free_irq() expects the same device identity that was passed to
corresponding request_irq(), otherwise the IRQ is not freed.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 315955d7
...@@ -1776,7 +1776,7 @@ static int mv_u3d_remove(struct platform_device *dev) ...@@ -1776,7 +1776,7 @@ static int mv_u3d_remove(struct platform_device *dev)
kfree(u3d->eps); kfree(u3d->eps);
if (u3d->irq) if (u3d->irq)
free_irq(u3d->irq, &dev->dev); free_irq(u3d->irq, u3d);
if (u3d->cap_regs) if (u3d->cap_regs)
iounmap(u3d->cap_regs); iounmap(u3d->cap_regs);
...@@ -1974,7 +1974,7 @@ static int mv_u3d_probe(struct platform_device *dev) ...@@ -1974,7 +1974,7 @@ static int mv_u3d_probe(struct platform_device *dev)
return 0; return 0;
err_unregister: err_unregister:
free_irq(u3d->irq, &dev->dev); free_irq(u3d->irq, u3d);
err_request_irq: err_request_irq:
err_get_irq: err_get_irq:
kfree(u3d->status_req); kfree(u3d->status_req);
......
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