From: Himangi Saraogi Date: Tue, 3 Jun 2014 21:19:53 +0000 (+0530) Subject: usb: phy: phy-gpio-vbus-usb: use devm_ functions X-Git-Tag: cleanup-for-v3.18~123^2~18^2~79 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f7b23ce88e9eb1194485b3399dfc83c24fb3634;p=pandora-kernel.git usb: phy: phy-gpio-vbus-usb: use devm_ functions The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_irq, devm_gpio_request, devm_regulator_get etc. 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 the labels are done away with. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed