From: Denis Efremov Date: Thu, 18 Apr 2013 13:13:31 +0000 (+0400) Subject: usb: phy: remove exported function from __init section X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=19d8ceddda8b3a806a0960106ae6aa4dcc21df3b;p=~shefty%2Frdma-dev.git usb: phy: 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). Signed-off-by: Denis Efremov Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index f52c006417f..a9984c700d2 100644 --- a/drivers/usb/phy/phy.c +++ b/drivers/usb/phy/phy.c @@ -413,7 +413,7 @@ EXPORT_SYMBOL_GPL(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;