From: Marc Kleine-Budde Date: Wed, 27 Feb 2013 14:11:13 +0000 (+0100) Subject: usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put X-Git-Tag: v3.9-rc3~17^2~19^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd03d8a510dae402096b194385a1373100450dc;p=pandora-kernel.git usb: otg: use try_module_get in all usb_get_phy functions and add missing module_put In patch "5d3c28b usb: otg: add device tree support to otg library" devm_usb_get_phy_by_phandle() was added. It uses try_module_get() to lock the phy driver in memory. The corresponding module_put() is missing in that patch. This patch adds try_module_get() to usb_get_phy() and usb_get_phy_dev(). Further the missing module_put() is added to usb_put_phy(). Tested-by: Steffen Trumtrar Reviewed-by: Kishon Vijay Abraham I Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed