Commit 6f5efd11 authored by Yang Yingliang's avatar Yang Yingliang Committed by Robert Foss

drm/bridge: anx7625: add missing destroy_workqueue() in anx7625_i2c_probe()

Add the missing destroy_workqueue() before return from
anx7625_i2c_probe() in the error handling case.

Fixes: adca62ec ("drm/bridge: anx7625: Support reading edid through aux channel")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220326073326.3389347-1-yangyingliang@huawei.com
parent 3aefc722
...@@ -2660,7 +2660,7 @@ static int anx7625_i2c_probe(struct i2c_client *client, ...@@ -2660,7 +2660,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
if (ret) { if (ret) {
if (ret != -EPROBE_DEFER) if (ret != -EPROBE_DEFER)
DRM_DEV_ERROR(dev, "fail to parse DT : %d\n", ret); DRM_DEV_ERROR(dev, "fail to parse DT : %d\n", ret);
return ret; goto free_wq;
} }
if (anx7625_register_i2c_dummy_clients(platform, client) != 0) { if (anx7625_register_i2c_dummy_clients(platform, client) != 0) {
...@@ -2675,7 +2675,7 @@ static int anx7625_i2c_probe(struct i2c_client *client, ...@@ -2675,7 +2675,7 @@ static int anx7625_i2c_probe(struct i2c_client *client,
pm_suspend_ignore_children(dev, true); pm_suspend_ignore_children(dev, true);
ret = devm_add_action_or_reset(dev, anx7625_runtime_disable, dev); ret = devm_add_action_or_reset(dev, anx7625_runtime_disable, dev);
if (ret) if (ret)
return ret; goto free_wq;
if (!platform->pdata.low_power_mode) { if (!platform->pdata.low_power_mode) {
anx7625_disable_pd_protocol(platform); anx7625_disable_pd_protocol(platform);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment