From: Himangi Saraogi Date: Wed, 11 Jun 2014 18:38:23 +0000 (+0530) Subject: usb: host: uhci-grlib.c : use devm_ functions X-Git-Tag: omap-for-v3.17/fixes-against-rc2~164^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddd94257410fa6be955af4592d8727e3b4ba51ef;p=pandora-kernel.git 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 Acked-by: Andreas Larsson Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed