Skip to content

Commit

Permalink
drm/bridge: anx7625: Fix release wrong workqueue
Browse files Browse the repository at this point in the history
If "hdcp_workqueue" exist, must release "hdcp_workqueue",
not "workqueue".

Fixes: cd1637c ("drm/bridge: anx7625: add HDCP support")
Signed-off-by: Xin Ji <xji@analogixsemi.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220217024418.3780171-1-xji@analogixsemi.com
  • Loading branch information
Xin Ji authored and Robert Foss committed Mar 1, 2022
1 parent e22dfdb commit beac770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/bridge/analogix/anx7625.c
Original file line number Diff line number Diff line change
Expand Up @@ -2736,8 +2736,8 @@ static int anx7625_i2c_remove(struct i2c_client *client)

if (platform->hdcp_workqueue) {
cancel_delayed_work(&platform->hdcp_work);
flush_workqueue(platform->workqueue);
destroy_workqueue(platform->workqueue);
flush_workqueue(platform->hdcp_workqueue);
destroy_workqueue(platform->hdcp_workqueue);
}

if (!platform->pdata.low_power_mode)
Expand Down

0 comments on commit beac770

Please sign in to comment.