diff options
author | Simon Horman <horms@verge.net.au> | 2009-12-23 19:54:50 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:42:37 -0800 |
commit | c33c2065fc4d424e23547b58900ded5eb4444e9d (patch) | |
tree | 66effc3dcd252373926f95093534b4f515481adf /drivers | |
parent | 6910dadf3f11254bc0af79f578c7228b4e1334ac (diff) | |
download | linux-c33c2065fc4d424e23547b58900ded5eb4444e9d.tar.gz linux-c33c2065fc4d424e23547b58900ded5eb4444e9d.tar.bz2 linux-c33c2065fc4d424e23547b58900ded5eb4444e9d.zip |
Staging: rt2870: rtusb_probe() should be in section __devinit
$ make CONFIG_DEBUG_SECTION_MISMATCH=y
WARNING: drivers/staging/rt2870/rt2870sta.o(.text+0x2f4c5): Section
mismatch in reference from the function rtusb_probe() to the function .devinit.text:rt2870_probe()
The function rtusb_probe() references
the function __devinit rt2870_probe().
This is often because rtusb_probe lacks a __devinit
annotation or the annotation of rt2870_probe is wrong.
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rt2860/usb_main_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rt2860/usb_main_dev.c b/drivers/staging/rt2860/usb_main_dev.c index 925a236e1044..1e6e8a3b61ac 100644 --- a/drivers/staging/rt2860/usb_main_dev.c +++ b/drivers/staging/rt2860/usb_main_dev.c @@ -296,7 +296,7 @@ static BOOLEAN USBDevConfigInit(IN struct usb_device *dev, } -static int rtusb_probe(struct usb_interface *intf, +static int __devinit rtusb_probe(struct usb_interface *intf, const struct usb_device_id *id) { struct rt_rtmp_adapter *pAd; |