]> 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>
Thu, 29 Nov 2012 03:18:28 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:31 +0000 (16:23 +1100)
commit4ebf11dcf410b733e51e2386f26b75cb7b841c7e
treea6d84d97ce738b0b5ab7f206abb0cfca34302fb9
parent46489c2fa724084769e31ac200ffbed417df7ee7
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