drivers/w1/masters/ds1wm.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 6 Dec 2012 23:15:23 +0000 (00:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 07:38:43 +0000 (23:38 -0800)
commiteea2172e6915a92cab1d3a79a4961e14a3c388ff
treed37dfa0ae8ab771df7ec8227d52a7a6dfc4c102e
parentfeee830394cab4e697d2204da6d10a606619de3d
drivers/w1/masters/ds1wm.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 <Julia.Lawall@lip6.fr>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/ds1wm.c