Skip to contentSkip to conversation

media: ti: omap: release DSS compatibility layer on remove

PATCH New Guangshuo Li 1 participant 1 message Sep 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: ti: omap: release DSS compatibility layer on remove

omap_vout_probe() calls omapdss_compat_init(), while omap_vout_remove() does not call the corresponding omapdss_compat_uninit().

The probe failure paths release the DSS compatibility layer, but the normal remove path leaves it initialized after the video output device has been removed.

Call omapdss_compat_uninit() during remove after releasing the video device resources, matching the cleanup performed by the probe failure paths.

This issue was found by manual code inspection.

Fixes a9ee9f08b615 ("OMAPDSS: use omapdss_compat_init() in other drivers")
---
 drivers/media/platform/ti/omap/omap_vout.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/platform/ti/omap/omap_vout.c +1 -0
index 8d0319a37ba8..0efaff4d343d 100644
@@ -1586,6 +1586,7 @@ static void omap_vout_remove(struct platform_device *pdev)
 		omap_dss_put_device(vid_dev->displays[k]);
 	}
 	kfree(vid_dev);
+	omapdss_compat_uninit();
 }
 
 static int __init omap_vout_probe(struct platform_device *pdev)
Signature · 1 line
2.43.0