]> git.karo-electronics.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>
Thu, 29 Nov 2012 03:18:27 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:31 +0000 (16:23 +1100)
commit46489c2fa724084769e31ac200ffbed417df7ee7
treefda830fc5dd392975c1a452cb55d6acfb64e9440
parent707221f16b073f23c3f613c88dcc309d83185040
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