]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
video: sh7760fb: fix to pass correct device identity to free_irq()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 12 Jul 2013 13:20:03 +0000 (21:20 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 29 Jul 2013 08:25:03 +0000 (11:25 +0300)
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>
drivers/video/sh7760fb.c

index a8c6c43a4658565c8b21fa38a3baaf1c5bd82e36..1265b25f9f99993efd8d094716acb65563d8570f 100644 (file)
@@ -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);