ehci-atmel: fix section mismatch warning
authorHubert Feurstein <h.feurstein@gmail.com>
Thu, 10 Mar 2011 09:06:37 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Mar 2011 22:18:52 +0000 (14:18 -0800)
commit0dfeefbc93e38c3a9bd6d4e579cc5a76d3f13dc2
treefbe357913fd0e0757088263602f38a3478cdcf5f
parentb88ccf6f97ceb3f34cecbb513edc58815707187d
ehci-atmel: fix section mismatch warning

Fix the following section mismatch warning:

WARNING: drivers/usb/built-in.o(.data+0x74c): Section mismatch in reference from the variable ehci_atmel_driver to the function .init.text:ehci_atmel_drv_probe()
The variable ehci_atmel_driver references
the function __init ehci_atmel_drv_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-atmel.c