]> git.karo-electronics.de Git - linux-beck.git/commit
88pm860x_charger: Drop kfree of devm_kzalloc'd data
authorJingoo Han <jg1.han@samsung.com>
Mon, 11 Mar 2013 06:30:40 +0000 (15:30 +0900)
committerAnton Vorontsov <anton@enomsg.org>
Mon, 1 Apr 2013 06:25:17 +0000 (23:25 -0700)
commit3f8060a5fe1825dce3bf9870f4bef964fe6374c9
treebcff183cb3d296226659e074ea3c5088a7fd9510
parentf11d018fd6f24e611e06d6aedd91c59831b3bf05
88pm860x_charger: Drop kfree of devm_kzalloc'd data

The devm_kzalloc function allocates memory that is released automatically,
when a driver detaches. Thus, there is no reason to explicitly call kfree
in probe or remove functions.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/88pm860x_charger.c