Commit 3fc5a284 authored by Xu Wang's avatar Xu Wang Committed by Laurent Pinchart

drm: bridge: adv7511: Remove redundant null check before clk_disable_unprepare

Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove them.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 0647bf15
...@@ -1292,8 +1292,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id) ...@@ -1292,8 +1292,7 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
err_unregister_cec: err_unregister_cec:
i2c_unregister_device(adv7511->i2c_cec); i2c_unregister_device(adv7511->i2c_cec);
if (adv7511->cec_clk) clk_disable_unprepare(adv7511->cec_clk);
clk_disable_unprepare(adv7511->cec_clk);
err_i2c_unregister_packet: err_i2c_unregister_packet:
i2c_unregister_device(adv7511->i2c_packet); i2c_unregister_device(adv7511->i2c_packet);
err_i2c_unregister_edid: err_i2c_unregister_edid:
...@@ -1311,8 +1310,7 @@ static int adv7511_remove(struct i2c_client *i2c) ...@@ -1311,8 +1310,7 @@ static int adv7511_remove(struct i2c_client *i2c)
if (adv7511->type == ADV7533 || adv7511->type == ADV7535) if (adv7511->type == ADV7533 || adv7511->type == ADV7535)
adv7533_detach_dsi(adv7511); adv7533_detach_dsi(adv7511);
i2c_unregister_device(adv7511->i2c_cec); i2c_unregister_device(adv7511->i2c_cec);
if (adv7511->cec_clk) clk_disable_unprepare(adv7511->cec_clk);
clk_disable_unprepare(adv7511->cec_clk);
adv7511_uninit_regulators(adv7511); adv7511_uninit_regulators(adv7511);
......
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