linux_dsm_epyc7002/drivers/usb/gadget/udc
Arnd Bergmann c94e289f19 usb: gadget: remove incorrect __init/__exit annotations
A recent change introduced a link error for the composite
printer gadget driver:

`printer_unbind' referenced in section `.ref.data' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

Evidently the unbind function should not be marked __exit here,
because it is called through a callback pointer that is not necessarily
discarded, __composite_unbind() is indeed called from the error path of
composite_bind(), which can never work for a built-in driver.

Looking at the surrounding code, I found the same problem in all other
composite gadget drivers in both the bind and unbind functions, as
well as the udc platform driver 'remove' functions. Those will break
if anyone uses the 'unbind' sysfs attribute to detach a device from a
built-in driver.

This patch removes the incorrect annotations from all the gadget
drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-04-27 14:45:35 -05:00
..
bdc usb: gadget: bdc_udc: set value for common is_selfpowered 2015-01-29 10:32:54 -06:00
amd5536udc.c usb: gadget: amd5536udc: use udc-core's reset notifier 2014-11-10 17:19:37 -06:00
amd5536udc.h
at91_udc.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
at91_udc.h ARM: SoC driver updates 2015-02-17 09:38:59 -08:00
atmel_usba_udc.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
atmel_usba_udc.h usb: gadget: atmel_usba: use endian agnostic IO on ARM 2015-03-19 11:28:16 -05:00
bcm63xx_udc.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
dummy_hcd.c dummy_hcd: use USB_DT[_SS]_HUB 2015-04-03 19:03:16 +02:00
fotg210-udc.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c usb: gadget: cleanup on stack DECLARE_COMPLETIONs 2015-01-12 12:13:27 -06:00
fsl_qe_udc.h
fsl_udc_core.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
fsl_usb2_udc.h
fusb300_udc.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
fusb300_udc.h usb: gadget: fusb300_udc.h: Fix typo in include guard 2014-09-03 09:15:57 -05:00
gadget_chips.h
goku_udc.c usb: gadget: goku_udc: Remove uses of seq_<foo> return values 2015-03-19 11:28:15 -05:00
goku_udc.h
gr_udc.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
gr_udc.h usb: gadget: gr_udc: Add bounce buffer to handle odd sized OUT requests 2014-09-16 10:01:45 -05:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
lpc32xx_udc.c usb: gadget: lpc32xxx_udc: Fix NULL dereference 2015-03-11 14:59:10 -05:00
m66592-udc.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
m66592-udc.h
Makefile usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC 2014-11-18 08:47:23 -06:00
mv_u3d_core.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
mv_u3d.h
mv_udc_core.c usb: gadget: mv_udc_core: delete pullup operation at .udc_start 2015-01-12 12:24:29 -06:00
mv_udc.h
net2272.c usb: gadget: net2272: use common is_selfpowered 2015-01-29 10:35:27 -06:00
net2272.h usb: gadget: net2272: use common is_selfpowered 2015-01-29 10:35:27 -06:00
net2280.c usb: gadget: net2280: silence sparse warning 2015-03-10 15:33:31 -05:00
net2280.h usb: gadget: net2280: remove fiforegs as it is unused 2015-03-10 15:33:30 -05:00
omap_udc.c usb: gadget: omap_udc: set value for common is_selfpowered 2015-01-29 10:35:04 -06:00
omap_udc.h
pch_udc.c usb: gadget: pch_udc: set value for common is_selfpowered 2015-01-29 10:35:36 -06:00
pxa25x_udc.c usb: gadget: pxa27x_udc: delete pullup operation at .udc_start and .udc_stop 2015-01-12 12:24:22 -06:00
pxa25x_udc.h
pxa27x_udc.c usb: gadget: constify of_device_id array 2015-03-19 11:28:15 -05:00
pxa27x_udc.h usb: gadget: pxa27x_udc: transfer mach_info into pxa_udc 2014-11-03 10:00:57 -06:00
r8a66597-udc.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
r8a66597-udc.h
s3c2410_udc.c usb: gadget: s3c2410_udc: set value for common is_selfpowered 2015-01-29 10:35:23 -06:00
s3c2410_udc.h
s3c-hsudc.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
udc-core.c usb: udc: add usb_udc_vbus_handler 2015-03-19 11:26:03 -05:00
udc-xilinx.c usb: gadget: xilinx: fix devm_ioremap_resource() check 2015-04-27 14:38:34 -05:00