Skip to content
Commit 9239a86f authored by Phil Reid's avatar Phil Reid Committed by Sebastian Reichel
Browse files

power: sbs-battery: Use devm_kzalloc to alloc data



Use devm_kzalloc to allow memory to be freed automatically on
driver probe failure or removal.

Signed-off-by: default avatarPhil Reid <preid@electromag.com.au>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent e4a404a0
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