From d243a34d029458c2d63bfc4e5c2137dad2a18b1f Mon Sep 17 00:00:00 2001 From: "algea.cao" Date: Wed, 19 Apr 2017 19:32:09 +0800 Subject: [PATCH] drm: bridge: dw-hdmi: unregister the hpd workqueue when unbind Change-Id: Ib692a4e42843a6a9c89c5a92f79a7dd85a4ae534 Signed-off-by: algea.cao --- drivers/gpu/drm/bridge/dw-hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c index a25117765af4..afbb6c83ac46 100644 --- a/drivers/gpu/drm/bridge/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/dw-hdmi.c @@ -2664,6 +2664,9 @@ void dw_hdmi_unbind(struct device *dev, struct device *master, void *data) i2c_del_adapter(&hdmi->i2c->adap); else i2c_put_adapter(hdmi->ddc); + + flush_workqueue(hdmi->workqueue); + destroy_workqueue(hdmi->workqueue); } EXPORT_SYMBOL_GPL(dw_hdmi_unbind); -- 2.34.1