Commit 07a67bbb authored by Shubhrajyoti D's avatar Shubhrajyoti D Committed by Felipe Balbi

usb: musb: Make dma_controller_create __devinit

dma_controller_create is called only from musb_init_controller
which is __devint so annotate dma_controller_create also with
__devint.

fixes the warn

WARNING: vmlinux.o(.devinit.text+0x6fa8): Section mismatch in reference from the function musb_init_controller() to the function .init.text:dma_controller_create()
The function __devinit musb_init_controller() references
a function __init dma_controller_create().
If dma_controller_create is only used by musb_init_controller then
annotate dma_controller_create with a matching annotation.
Signed-off-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f69dfa1f
...@@ -1316,7 +1316,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) ...@@ -1316,7 +1316,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id)
} }
/* Instantiate a software object representing a DMA controller. */ /* Instantiate a software object representing a DMA controller. */
struct dma_controller *__init struct dma_controller *__devinit
dma_controller_create(struct musb *musb, void __iomem *mregs) dma_controller_create(struct musb *musb, void __iomem *mregs)
{ {
struct cppi *controller; struct cppi *controller;
......
...@@ -178,7 +178,7 @@ struct dma_controller { ...@@ -178,7 +178,7 @@ struct dma_controller {
extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit); extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit);
extern struct dma_controller *__init extern struct dma_controller *__devinit
dma_controller_create(struct musb *, void __iomem *); dma_controller_create(struct musb *, void __iomem *);
extern void dma_controller_destroy(struct dma_controller *); extern void dma_controller_destroy(struct dma_controller *);
......
...@@ -380,7 +380,7 @@ void dma_controller_destroy(struct dma_controller *c) ...@@ -380,7 +380,7 @@ void dma_controller_destroy(struct dma_controller *c)
kfree(controller); kfree(controller);
} }
struct dma_controller *__init struct dma_controller *__devinit
dma_controller_create(struct musb *musb, void __iomem *base) dma_controller_create(struct musb *musb, void __iomem *base)
{ {
struct musb_dma_controller *controller; struct musb_dma_controller *controller;
......
...@@ -662,7 +662,7 @@ void dma_controller_destroy(struct dma_controller *c) ...@@ -662,7 +662,7 @@ void dma_controller_destroy(struct dma_controller *c)
kfree(tusb_dma); kfree(tusb_dma);
} }
struct dma_controller *__init struct dma_controller *__devinit
dma_controller_create(struct musb *musb, void __iomem *base) dma_controller_create(struct musb *musb, void __iomem *base)
{ {
void __iomem *tbase = musb->ctrl_base; void __iomem *tbase = musb->ctrl_base;
......
...@@ -364,7 +364,7 @@ void dma_controller_destroy(struct dma_controller *c) ...@@ -364,7 +364,7 @@ void dma_controller_destroy(struct dma_controller *c)
kfree(controller); kfree(controller);
} }
struct dma_controller *__init struct dma_controller *__devinit
dma_controller_create(struct musb *musb, void __iomem *base) dma_controller_create(struct musb *musb, void __iomem *base)
{ {
struct ux500_dma_controller *controller; struct ux500_dma_controller *controller;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment