]> git.karo-electronics.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>
Fri, 9 Nov 2012 03:04:48 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:17:20 +0000 (15:17 +1100)
commit0f1ed2d229409b83a659879ac0fbf356e361dc93
treede843e27449852cf98af868f24786105957e7730
parent08d7563b268962fa7bcbe818accce4b2bfa914bb
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