From: Mike Frysinger Date: Sun, 7 Mar 2010 15:36:27 +0000 (-0500) Subject: USB: g_mass_storage: fix section mismatch warnings X-Git-Tag: v2.6.34-rc2~8^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f88f6691b73a35b0c6dcabb9e587aa4c63d09010;p=pandora-kernel.git USB: g_mass_storage: fix section mismatch warnings The recent commit (0e530b45783f75) that moved usb_ep_autoconfig from the __devinit section to the __init section missed the mass storage device. Its fsg_bind() function uses the usb_ep_autoconfig() function from non __init context leading to: WARNING: drivers/usb/gadget/g_mass_storage.o(.text): Section mismatch in reference from the function _fsg_bind() to the function .init.text:_usb_ep_autoconfig() So move fsg_bind() into __init as well. Signed-off-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed