From: Damien Cassou Date: Fri, 3 Aug 2012 15:40:13 +0000 (+0200) Subject: drivers/video/msm/mddi_client_nt35399.c: use devm_ functions X-Git-Tag: v3.7-rc1~48^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a654ddac0892eb8495d75cbd7f45646895cc5e5f;p=pandora-kernel.git drivers/video/msm/mddi_client_nt35399.c: use devm_ functions The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Additionally, this patch fixes a memory leak: some memory was allocated for 'panel' but not released when the subsequent call to setup_vsync fails. Signed-off-by: Damien Cassou Acked-by: David Brown Signed-off-by: Florian Tobias Schandinat --- Reading git-diff-tree failed