Skip to content
Commit deacc4fe authored by Devendra Naga's avatar Devendra Naga Committed by Anton Vorontsov
Browse files

ds2781_battery: Replace call to kzalloc with devm_kzalloc



With devm_kzalloc there is no need of freeing at the errorpath and also
at unregister it.

Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent bc6e51d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment