staging:nvec: Introduce the use of the managed version of kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 7 Mar 2014 16:09:27 +0000 (21:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 23:19:36 +0000 (15:19 -0800)
commite534f3e9429feb99ea133dfd5618b0dfc5af8a00
tree228fb0379972da1e792e35c0f31ea5800346c017
parentb77f2767a76eaf6a26eb3c2128877b362544b804
staging:nvec: Introduce the use of the managed version of kzalloc

This patch moves shared private data kzalloc to managed devm_kzalloc.
There are no kfree statements associated with this data, so using devm
adds the possibility of the data being freed, if the proble function
fails (if that is possible) or if the remove function succeeds.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c