]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/video/backlight/max8925_bl.c: drop devm_kfree of devm_kzalloc'd data
authorJingoo Han <jg1.han@samsung.com>
Sat, 3 Nov 2012 00:42:46 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:24 +0000 (15:15 +1100)
commit8a1624df32deaf9ef80b6e185f0d87e4fdc77f9c
tree39400df85128ff3678786243d651264584f981c1
parenta668861ac3c8a6201abf0f322589b8f65fcda50e
drivers/video/backlight/max8925_bl.c: drop devm_kfree of devm_kzalloc'd data

devm_kfree() allocates memory that is released when a driver detaches.
Thus, there is no reason to explicitly call devm_kfree in probe or remove
functions.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/max8925_bl.c