mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
drm/bridge: adv7511: clean up CEC adapter when probe fails
[ Upstream commit7ed2b0dabf
] When the probe routine fails we also need to clean up the CEC adapter registered in adv7511_cec_init(). Fixes:3b1b975003
("drm: adv7511/33: add HDMI CEC support") Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Robert Foss <robert.foss@linaro.org> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20220321104705.2804423-1-l.stach@pengutronix.de Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7989e5daab
commit
18b3548832
1 changed files with 1 additions and 0 deletions
|
@ -1306,6 +1306,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
|
|||
return 0;
|
||||
|
||||
err_unregister_cec:
|
||||
cec_unregister_adapter(adv7511->cec_adap);
|
||||
i2c_unregister_device(adv7511->i2c_cec);
|
||||
clk_disable_unprepare(adv7511->cec_clk);
|
||||
err_i2c_unregister_packet:
|
||||
|
|
Loading…
Add table
Reference in a new issue