aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorWang Zhang <[email protected]>2023-05-26 15:05:33 +0800
committerWolfram Sang <[email protected]>2023-06-23 10:20:40 +0200
commit9e1a1ee93f6b08aad5ee645073f7c7b115f71e15 (patch)
treebaca84f6ce57cdb8f7abe13c8505bd98c1383306 /scripts/bpf_doc.py
parente653810f7898baebd05f953b8fb3e2c7b8485b45 (diff)
i2c: ocores: use devm_ managed clks
Smatch complains that: drivers/i2c/busses/i2c-ocores.c:704 ocores_i2c_probe() warn: missing unwind goto? If any wrong occurs in ocores_i2c_of_probe, the i2c->clk needs to be released. But the function returns directly without freeing the clock. Fix this by updating the code to use devm_clk_get_optional_enabled() instead. Use dev_err_probe() where appropriate as well since we are changing those statements. Fixes: f5f35a92e44a ("i2c: ocores: Add irq support for sparc") Signed-off-by: Wang Zhang <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions