[PATCH] usb: phy: phy-gpio-vbus-usb: use devm_ functions

2014-06-03 Thread Himangi Saraogi
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

[PATCH] usb: phy: phy-gpio-vbus-usb: use devm_ functions

2014-06-03 Thread Himangi Saraogi
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