From: Levente Kurusa Date: Fri, 7 Feb 2014 08:43:21 +0000 (+0100) Subject: backlight: core: Replace kfree with put_device X-Git-Tag: v3.15-rc1~40^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35762a47c0a24072a689cbd98ecf8c62b037ef8a;p=pandora-kernel.git backlight: core: Replace kfree with put_device As per the comments on device_register, we shouldn't call kfree() right after a device_register() failure. Instead call put_device(), which in turn will call bl_device_release resulting in a kfree to the full structure. Signed-off-by: Levente Kurusa Acked-by: Jingoo Han Signed-off-by: Lee Jones --- Reading git-diff-tree failed