drm/omap: dmm_tiler: No need to check if irq is valid in omap_dmm_remove
The driver probe would fail if the irq is not available. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
538f66ba20
commit
157aa884c9
@ -636,8 +636,7 @@ static int omap_dmm_remove(struct platform_device *dev)
|
||||
if (omap_dmm->dummy_page)
|
||||
__free_page(omap_dmm->dummy_page);
|
||||
|
||||
if (omap_dmm->irq > 0)
|
||||
free_irq(omap_dmm->irq, omap_dmm);
|
||||
free_irq(omap_dmm->irq, omap_dmm);
|
||||
|
||||
iounmap(omap_dmm->base);
|
||||
kfree(omap_dmm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user