EEPROM: Introduce the use of devm_kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 1 Aug 2014 19:04:23 +0000 (00:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:04:17 +0000 (23:04 -0700)
commit1698da246134e88bb05550dafe7c34b47387655a
treea8a01b346ba7c3961907f24a16b9fd43942d2ca7
parentcfda2794b5afe7ce64ee9605c64bef0e56a48125
EEPROM: Introduce the use of devm_kzalloc

This patch introduces the use of devm_kzalloc and does away with the
kfrees in the probe and remove functions. Also, a label and the err
variable are removed. The header device.h is included to make the devm_
function explicitly available and slab.h is done away with as it is no
longer needed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/eeprom.c