提交 50757b24 编写于 作者: F Felipe Balbi

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: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 c5dbc220
...@@ -609,7 +609,7 @@ static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in) ...@@ -609,7 +609,7 @@ static void inc_ep_stats_bytes(struct pxa_ep *ep, int count, int is_in)
* *
* Find the physical pxa27x ep, and setup its UDCCR * Find the physical pxa27x ep, and setup its UDCCR
*/ */
static __init void pxa_ep_setup(struct pxa_ep *ep) static void pxa_ep_setup(struct pxa_ep *ep)
{ {
u32 new_udccr; u32 new_udccr;
...@@ -631,7 +631,7 @@ static __init void pxa_ep_setup(struct pxa_ep *ep) ...@@ -631,7 +631,7 @@ static __init void pxa_ep_setup(struct pxa_ep *ep)
* *
* Setup all pxa physical endpoints, except ep0 * Setup all pxa physical endpoints, except ep0
*/ */
static __init void pxa_eps_setup(struct pxa_udc *dev) static void pxa_eps_setup(struct pxa_udc *dev)
{ {
unsigned int i; unsigned int i;
...@@ -1716,7 +1716,7 @@ static void udc_disable(struct pxa_udc *udc) ...@@ -1716,7 +1716,7 @@ static void udc_disable(struct pxa_udc *udc)
* Initializes gadget endpoint list, endpoints locks. No action is taken * Initializes gadget endpoint list, endpoints locks. No action is taken
* on the hardware. * on the hardware.
*/ */
static __init void udc_init_data(struct pxa_udc *dev) static void udc_init_data(struct pxa_udc *dev)
{ {
int i; int i;
struct pxa_ep *ep; struct pxa_ep *ep;
...@@ -2490,7 +2490,7 @@ static int pxa_udc_probe(struct platform_device *pdev) ...@@ -2490,7 +2490,7 @@ static int pxa_udc_probe(struct platform_device *pdev)
* pxa_udc_remove - removes the udc device driver * pxa_udc_remove - removes the udc device driver
* @_dev: platform device * @_dev: platform device
*/ */
static int __exit pxa_udc_remove(struct platform_device *_dev) static int pxa_udc_remove(struct platform_device *_dev)
{ {
struct pxa_udc *udc = platform_get_drvdata(_dev); struct pxa_udc *udc = platform_get_drvdata(_dev);
int gpio = udc->mach->gpio_pullup; int gpio = udc->mach->gpio_pullup;
...@@ -2609,7 +2609,7 @@ static struct platform_driver udc_driver = { ...@@ -2609,7 +2609,7 @@ static struct platform_driver udc_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = pxa_udc_probe, .probe = pxa_udc_probe,
.remove = __exit_p(pxa_udc_remove), .remove = pxa_udc_remove,
.shutdown = pxa_udc_shutdown, .shutdown = pxa_udc_shutdown,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.suspend = pxa_udc_suspend, .suspend = pxa_udc_suspend,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册