diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2012-08-09 10:38:32 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-08-09 11:05:07 -0400 |
commit | 07a67bbb95ea7977846bd851dab5f4f2be8e488c (patch) | |
tree | 332b3cab3e2c53c070ea108f7f0ec418a3131624 /drivers/usb | |
parent | f69dfa1f01e20387ada601f2bf772061d79e6a8f (diff) |
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: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/cppi_dma.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_dma.h | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musbhsdma.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010_omap.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/ux500_dma.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index 8637c1f69fc3..e19da82b4782 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -1316,7 +1316,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) | |||
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | /* Instantiate a software object representing a DMA controller. */ | 1318 | /* Instantiate a software object representing a DMA controller. */ |
1319 | struct dma_controller *__init | 1319 | struct dma_controller *__devinit |
1320 | dma_controller_create(struct musb *musb, void __iomem *mregs) | 1320 | dma_controller_create(struct musb *musb, void __iomem *mregs) |
1321 | { | 1321 | { |
1322 | struct cppi *controller; | 1322 | struct cppi *controller; |
diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 3a97c4e2d4f5..24d39210d4ab 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h | |||
@@ -178,7 +178,7 @@ struct dma_controller { | |||
178 | extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit); | 178 | extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit); |
179 | 179 | ||
180 | 180 | ||
181 | extern struct dma_controller *__init | 181 | extern struct dma_controller *__devinit |
182 | dma_controller_create(struct musb *, void __iomem *); | 182 | dma_controller_create(struct musb *, void __iomem *); |
183 | 183 | ||
184 | extern void dma_controller_destroy(struct dma_controller *); | 184 | extern void dma_controller_destroy(struct dma_controller *); |
diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 57a608584e16..444b9ee06490 100644 --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c | |||
@@ -380,7 +380,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
380 | kfree(controller); | 380 | kfree(controller); |
381 | } | 381 | } |
382 | 382 | ||
383 | struct dma_controller *__init | 383 | struct dma_controller *__devinit |
384 | dma_controller_create(struct musb *musb, void __iomem *base) | 384 | dma_controller_create(struct musb *musb, void __iomem *base) |
385 | { | 385 | { |
386 | struct musb_dma_controller *controller; | 386 | struct musb_dma_controller *controller; |
diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb/tusb6010_omap.c index b67b4bc596c1..53e25968ed0c 100644 --- a/drivers/usb/musb/tusb6010_omap.c +++ b/drivers/usb/musb/tusb6010_omap.c | |||
@@ -662,7 +662,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
662 | kfree(tusb_dma); | 662 | kfree(tusb_dma); |
663 | } | 663 | } |
664 | 664 | ||
665 | struct dma_controller *__init | 665 | struct dma_controller *__devinit |
666 | dma_controller_create(struct musb *musb, void __iomem *base) | 666 | dma_controller_create(struct musb *musb, void __iomem *base) |
667 | { | 667 | { |
668 | void __iomem *tbase = musb->ctrl_base; | 668 | void __iomem *tbase = musb->ctrl_base; |
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index d05c7fbbb703..639d58ee24f9 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c | |||
@@ -364,7 +364,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
364 | kfree(controller); | 364 | kfree(controller); |
365 | } | 365 | } |
366 | 366 | ||
367 | struct dma_controller *__init | 367 | struct dma_controller *__devinit |
368 | dma_controller_create(struct musb *musb, void __iomem *base) | 368 | dma_controller_create(struct musb *musb, void __iomem *base) |
369 | { | 369 | { |
370 | struct ux500_dma_controller *controller; | 370 | struct ux500_dma_controller *controller; |