adv7481: Release CCI clocks and vreg during a probe failure

When driver probe fails, release CCI clocks and voltage
regulators so that the target can go to low power state.

CRs-Fixed: 1084079
Change-Id: Ic0581f3b8ebaed84d22f627d5ddd3dcb32dafb21
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
This commit is contained in:
Shiju Mathew 2016-10-27 20:27:54 -04:00 committed by Gerrit - the friendly Code Review server
parent c16c42a403
commit ba7970cfcb

View file

@ -2389,6 +2389,7 @@ err_media_entity:
media_entity_cleanup(&sd->entity);
err_mem_free:
adv7481_release_cci_clks(state);
devm_kfree(&pdev->dev, state);
err: