]> git.baikalelectronics.ru Git - kernel.git/commit
ds2781_battery: Replace call to kzalloc with devm_kzalloc
authorDevendra Naga <develkernel412222@gmail.com>
Mon, 30 Jul 2012 10:44:33 +0000 (16:29 +0545)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 02:47:14 +0000 (19:47 -0700)
commit9213e97cee1fab7b1291257ef93e542b1fc44eb2
tree69de0e89f91951d9bcdec779ea645fbb1b4899f2
parent306393b52a6bc111a998a27159544a47733969f5
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: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/ds2781_battery.c