usb: host: uhci-grlib.c : use devm_ functions
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 11 Jun 2014 18:38:23 +0000 (00:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:25:22 +0000 (16:25 -0700)
commitddd94257410fa6be955af4592d8727e3b4ba51ef
treeee3c8847938902ec7cea101d9248edf6ffe11001
parent6a70b621227d1fd3efd150fce63ea4d51d4acaa9
usb: host: uhci-grlib.c : use devm_ functions

The various devm_ functions allocate memory that is released when a
driver detaches. This patch uses devm_ioremap_resource for data
that is allocated in the probe function of a platform device and
is only freed in the remove function. The corresponding free functions
are removed and two labels are done away with. Also, linux/device.h
is added to make sure the devm_*() routine declarations are
unambiguously available.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-grlib.c