Skip to contentSkip to conversation

usb: otg: remove exported function from __init section

PATCH New Denis Efremov 1 participant 1 message Apr 18, 2013 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: otg: remove exported function from __init section

The symbol usb_bind_phy is exported and annotated __init. It looks like section mismatch. Fix by removing the __init annotation of usb_bind_phy.

Found by Linux Driver Verification project (linuxtesting.org).

---
 drivers/usb/otg/otg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/otg/otg.c +1 -1
index 2bd03d2..77346cf 100644
@@ -414,7 +414,7 @@ EXPORT_SYMBOL(usb_remove_phy);
  *
  * To be used by platform specific initialization code.
  */
-int __init usb_bind_phy(const char *dev_name, u8 index,
+int usb_bind_phy(const char *dev_name, u8 index,
 				const char *phy_dev_name)
 {
 	struct usb_phy_bind *phy_bind;
Signature · 1 line
1.8.1.4