]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drivers/video/backlight/max8925_bl.c: drop devm_kfree of devm_kzalloc'd data
authorJingoo Han <jg1.han@samsung.com>
Tue, 18 Dec 2012 00:00:58 +0000 (16:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:16 +0000 (17:15 -0800)
commit2c114cb4edb741822ea48e80be8c525032206e9a
tree510bf0549f30c125df70c70af1d2a0c2fdb50adb
parent3a1f9462dbdf4d671f2f21290d507d1ae89d141a
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/max8925_bl.c