]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/video/backlight/88pm860x_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>
Tue, 6 Nov 2012 04:58:37 +0000 (15:58 +1100)
commitb8f7d453baee7073662076421d257fe7d3a54526
tree5e50e888ac72edc2b32f4eac1cbe4a25ea4fb987
parent3024e7dff5fcb8792b0bdc2b3fba7baeada657bc
drivers/video/backlight/88pm860x_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/88pm860x_bl.c