drivers/video/msm/mddi_client_nt35399.c: use devm_ functions
authorDamien Cassou <damien.cassou@lifl.fr>
Fri, 3 Aug 2012 15:40:13 +0000 (17:40 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 23 Aug 2012 13:16:11 +0000 (13:16 +0000)
commita654ddac0892eb8495d75cbd7f45646895cc5e5f
tree5bed35c64ad3820377200cb86f50335aa2223b37
parentb7e69add39481dafb509a07ab527784d415b567b
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 <damien.cassou@lifl.fr>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/msm/mddi_client_nt35399.c