aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-04-02 10:13:40 -0400
committerFelipe Balbi <balbi@ti.com>2013-04-02 10:13:40 -0400
commit50757b24944ede7ab07165cdb57c995456b6e916 (patch)
treeba45c92d5e693c3c1c9bd7231d1e2b8b3d8b6062
parentc5dbc220b327dc1ff5e0b1d829c091347511ed83 (diff)
usb: gadget: pxa27x_udc: fix Section Mismatches
Remove all section annotations to fix the following section mismatches: >> WARNING: drivers/usb/gadget/pxa27x_udc.o(.text+0x597c): Section mismatch in reference from the function .pxa_udc_probe() to the function .init.text:.udc_init_data.constprop.11() The function .pxa_udc_probe() references the function __init .udc_init_data.constprop.11(). This is often because .pxa_udc_probe lacks a __init annotation or the annotation of .udc_init_data.constprop.11 is wrong. -- >> WARNING: drivers/usb/gadget/pxa27x_udc.o(.text+0x5a04): Section mismatch in reference from the function .pxa_udc_probe() to the function .init.text:.pxa_ep_setup() The function .pxa_udc_probe() references the function __init .pxa_ep_setup(). This is often because .pxa_udc_probe lacks a __init annotation or the annotation of .pxa_ep_setup is wrong. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index ad954c49d061..6b4c7d95853f 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -609,7 +609,7 @@ static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in)
609 * 609 *
610 * Find the physical pxa27x ep, and setup its UDCCR 610 * Find the physical pxa27x ep, and setup its UDCCR
611 */ 611 */
612static __init void pxa_ep_setup(struct pxa_ep *ep) 612static void pxa_ep_setup(struct pxa_ep *ep)
613{ 613{
614 u32 new_udccr; 614 u32 new_udccr;
615 615
@@ -631,7 +631,7 @@ static __init void pxa_ep_setup(struct pxa_ep *ep)
631 * 631 *
632 * Setup all pxa physical endpoints, except ep0 632 * Setup all pxa physical endpoints, except ep0
633 */ 633 */
634static __init void pxa_eps_setup(struct pxa_udc *dev) 634static void pxa_eps_setup(struct pxa_udc *dev)
635{ 635{
636 unsigned int i; 636 unsigned int i;
637 637
@@ -1716,7 +1716,7 @@ static void udc_disable(struct pxa_udc *udc)
1716 * Initializes gadget endpoint list, endpoints locks. No action is taken 1716 * Initializes gadget endpoint list, endpoints locks. No action is taken
1717 * on the hardware. 1717 * on the hardware.
1718 */ 1718 */
1719static __init void udc_init_data(struct pxa_udc *dev) 1719static void udc_init_data(struct pxa_udc *dev)
1720{ 1720{
1721 int i; 1721 int i;
1722 struct pxa_ep *ep; 1722 struct pxa_ep *ep;
@@ -2490,7 +2490,7 @@ err_clk:
2490 * pxa_udc_remove - removes the udc device driver 2490 * pxa_udc_remove - removes the udc device driver
2491 * @_dev: platform device 2491 * @_dev: platform device
2492 */ 2492 */
2493static int __exit pxa_udc_remove(struct platform_device *_dev) 2493static int pxa_udc_remove(struct platform_device *_dev)
2494{ 2494{
2495 struct pxa_udc *udc = platform_get_drvdata(_dev); 2495 struct pxa_udc *udc = platform_get_drvdata(_dev);
2496 int gpio = udc->mach->gpio_pullup; 2496 int gpio = udc->mach->gpio_pullup;
@@ -2609,7 +2609,7 @@ static struct platform_driver udc_driver = {
2609 .owner = THIS_MODULE, 2609 .owner = THIS_MODULE,
2610 }, 2610 },
2611 .probe = pxa_udc_probe, 2611 .probe = pxa_udc_probe,
2612 .remove = __exit_p(pxa_udc_remove), 2612 .remove = pxa_udc_remove,
2613 .shutdown = pxa_udc_shutdown, 2613 .shutdown = pxa_udc_shutdown,
2614#ifdef CONFIG_PM 2614#ifdef CONFIG_PM
2615 .suspend = pxa_udc_suspend, 2615 .suspend = pxa_udc_suspend,