未验证 提交 7ed2b0da 编写于 作者: L Lucas Stach 提交者: Robert Foss

drm/bridge: adv7511: clean up CEC adapter when probe fails

When the probe routine fails we also need to clean up the
CEC adapter registered in adv7511_cec_init().

Fixes: 3b1b9750 ("drm: adv7511/33: add HDMI CEC support")
Signed-off-by: NLucas Stach <l.stach@pengutronix.de>
Reviewed-by: NRobert Foss <robert.foss@linaro.org>
Signed-off-by: NRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321104705.2804423-1-l.stach@pengutronix.de
上级 6f5efd11
...@@ -1313,6 +1313,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id) ...@@ -1313,6 +1313,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
adv7511_audio_exit(adv7511); adv7511_audio_exit(adv7511);
drm_bridge_remove(&adv7511->bridge); drm_bridge_remove(&adv7511->bridge);
err_unregister_cec: err_unregister_cec:
cec_unregister_adapter(adv7511->cec_adap);
i2c_unregister_device(adv7511->i2c_cec); i2c_unregister_device(adv7511->i2c_cec);
clk_disable_unprepare(adv7511->cec_clk); clk_disable_unprepare(adv7511->cec_clk);
err_i2c_unregister_packet: err_i2c_unregister_packet:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册