aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorChen-Yu Tsai <[email protected]>2022-02-08 20:40:29 +0800
committerStephen Boyd <[email protected]>2022-02-17 12:12:24 -0800
commit3c3ba2ab0226f9a4f4312a5db2dd402ec42392ca (patch)
treed81bd45aea9acaf6007b40094e2b967b57e0ea11 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent6ae34f2b7b8211a8d33a8b68dd5410f50e95bf0e (diff)
clk: mediatek: mtk: Implement error handling in register APIs
The remaining clk registration functions do not stop or return errors if any clk failed to be registered, nor do they implement error handling paths. This may result in a partially working device if any step fails. Make the register functions return proper error codes, and bail out if errors occur. Proper cleanup, i.e. unregister any clks that were successfully registered, is done in the new error path. This also makes the |struct clk_data *| argument mandatory, as it is used to track the list of clks registered. Signed-off-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Miles Chen <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Chun-Jie Chen <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions