From: Julia Lawall Date: Fri, 23 Mar 2012 22:02:01 +0000 (-0700) Subject: drivers/video/backlight/adp5520_bl.c: use devm_ functions X-Git-Tag: v3.4-rc1~109^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050ea48bbfc80b6aa81f8df0d9f25e6e47d96e98;p=pandora-kernel.git drivers/video/backlight/adp5520_bl.c: use devm_ functions The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Julia Lawall Cc: Dimitris Papastamos Cc: Richard Purdie Cc: Florian Tobias Schandinat Cc: Mark Brown Acked-by: Michael Hennerich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed