Skip to content

Commit

Permalink
video: sh7760fb: fix to pass correct device identity to free_irq()
Browse files Browse the repository at this point in the history
free_irq() expects the same device identity that was passed to
corresponding request_irq(), otherwise the IRQ is not freed.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Wei Yongjun authored and Tomi Valkeinen committed Jul 29, 2013
1 parent 8b00e18 commit 7808e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/sh7760fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ static int sh7760fb_remove(struct platform_device *dev)
fb_dealloc_cmap(&info->cmap);
sh7760fb_free_mem(info);
if (par->irq >= 0)
free_irq(par->irq, par);
free_irq(par->irq, &par->vsync);
iounmap(par->base);
release_mem_region(par->ioarea->start, resource_size(par->ioarea));
framebuffer_release(info);
Expand Down

0 comments on commit 7808e32

Please sign in to comment.