diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:21:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 16:27:16 -0500 |
commit | 41ac7b3ab7fe1d6175839947a877fdf95cbd2211 (patch) | |
tree | 99cfe77797b6822424e37e365297d991e0800ab6 /drivers/usb/musb | |
parent | 7690417db5085f0de03aa70b8ca01b0118e8a1b4 (diff) |
usb: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Cc: Li Yang <leoli@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Olav Kongas <ok@artecdesign.ee>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/am35x.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/blackfin.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/cppi_dma.c | 3 | ||||
-rw-r--r-- | drivers/usb/musb/da8xx.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/davinci.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.c | 15 | ||||
-rw-r--r-- | drivers/usb/musb/musb_debugfs.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_dma.h | 3 | ||||
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 4 | ||||
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/musbhsdma.c | 3 | ||||
-rw-r--r-- | drivers/usb/musb/omap2430.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010_omap.c | 3 | ||||
-rw-r--r-- | drivers/usb/musb/ux500.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/ux500_dma.c | 3 |
16 files changed, 25 insertions, 31 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 49e8ce7ec26b..a27bb8515674 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c | |||
@@ -455,7 +455,7 @@ static const struct musb_platform_ops am35x_ops = { | |||
455 | 455 | ||
456 | static u64 am35x_dmamask = DMA_BIT_MASK(32); | 456 | static u64 am35x_dmamask = DMA_BIT_MASK(32); |
457 | 457 | ||
458 | static int __devinit am35x_probe(struct platform_device *pdev) | 458 | static int am35x_probe(struct platform_device *pdev) |
459 | { | 459 | { |
460 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 460 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
461 | struct platform_device *musb; | 461 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 7e4d60a41728..12beb0e31144 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -448,7 +448,7 @@ static const struct musb_platform_ops bfin_ops = { | |||
448 | 448 | ||
449 | static u64 bfin_dmamask = DMA_BIT_MASK(32); | 449 | static u64 bfin_dmamask = DMA_BIT_MASK(32); |
450 | 450 | ||
451 | static int __devinit bfin_probe(struct platform_device *pdev) | 451 | static int bfin_probe(struct platform_device *pdev) |
452 | { | 452 | { |
453 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 453 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
454 | struct platform_device *musb; | 454 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index 3a6c2fd1f913..0968dd7a859d 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -1317,8 +1317,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id) | |||
1317 | EXPORT_SYMBOL_GPL(cppi_interrupt); | 1317 | EXPORT_SYMBOL_GPL(cppi_interrupt); |
1318 | 1318 | ||
1319 | /* Instantiate a software object representing a DMA controller. */ | 1319 | /* Instantiate a software object representing a DMA controller. */ |
1320 | struct dma_controller *__devinit | 1320 | struct dma_controller *dma_controller_create(struct musb *musb, void __iomem *mregs) |
1321 | dma_controller_create(struct musb *musb, void __iomem *mregs) | ||
1322 | { | 1321 | { |
1323 | struct cppi *controller; | 1322 | struct cppi *controller; |
1324 | struct device *dev = musb->controller; | 1323 | struct device *dev = musb->controller; |
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 51ace9bf73df..c4fb235985ba 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c | |||
@@ -471,7 +471,7 @@ static const struct musb_platform_ops da8xx_ops = { | |||
471 | 471 | ||
472 | static u64 da8xx_dmamask = DMA_BIT_MASK(32); | 472 | static u64 da8xx_dmamask = DMA_BIT_MASK(32); |
473 | 473 | ||
474 | static int __devinit da8xx_probe(struct platform_device *pdev) | 474 | static int da8xx_probe(struct platform_device *pdev) |
475 | { | 475 | { |
476 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 476 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
477 | struct platform_device *musb; | 477 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index e01087b44e09..8877c1a7dbb7 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -504,7 +504,7 @@ static const struct musb_platform_ops davinci_ops = { | |||
504 | 504 | ||
505 | static u64 davinci_dmamask = DMA_BIT_MASK(32); | 505 | static u64 davinci_dmamask = DMA_BIT_MASK(32); |
506 | 506 | ||
507 | static int __devinit davinci_probe(struct platform_device *pdev) | 507 | static int davinci_probe(struct platform_device *pdev) |
508 | { | 508 | { |
509 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 509 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
510 | struct platform_device *musb; | 510 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 69cfa18bb2df..f17a3e79dbec 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1163,7 +1163,7 @@ static struct musb_fifo_cfg __devinitdata mode_5_cfg[] = { | |||
1163 | * | 1163 | * |
1164 | * returns negative errno or offset for next fifo. | 1164 | * returns negative errno or offset for next fifo. |
1165 | */ | 1165 | */ |
1166 | static int __devinit | 1166 | static int |
1167 | fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, | 1167 | fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, |
1168 | const struct musb_fifo_cfg *cfg, u16 offset) | 1168 | const struct musb_fifo_cfg *cfg, u16 offset) |
1169 | { | 1169 | { |
@@ -1238,7 +1238,7 @@ static struct musb_fifo_cfg __devinitdata ep0_cfg = { | |||
1238 | .style = FIFO_RXTX, .maxpacket = 64, | 1238 | .style = FIFO_RXTX, .maxpacket = 64, |
1239 | }; | 1239 | }; |
1240 | 1240 | ||
1241 | static int __devinit ep_config_from_table(struct musb *musb) | 1241 | static int ep_config_from_table(struct musb *musb) |
1242 | { | 1242 | { |
1243 | const struct musb_fifo_cfg *cfg; | 1243 | const struct musb_fifo_cfg *cfg; |
1244 | unsigned i, n; | 1244 | unsigned i, n; |
@@ -1329,7 +1329,7 @@ done: | |||
1329 | * ep_config_from_hw - when MUSB_C_DYNFIFO_DEF is false | 1329 | * ep_config_from_hw - when MUSB_C_DYNFIFO_DEF is false |
1330 | * @param musb the controller | 1330 | * @param musb the controller |
1331 | */ | 1331 | */ |
1332 | static int __devinit ep_config_from_hw(struct musb *musb) | 1332 | static int ep_config_from_hw(struct musb *musb) |
1333 | { | 1333 | { |
1334 | u8 epnum = 0; | 1334 | u8 epnum = 0; |
1335 | struct musb_hw_ep *hw_ep; | 1335 | struct musb_hw_ep *hw_ep; |
@@ -1376,7 +1376,7 @@ enum { MUSB_CONTROLLER_MHDRC, MUSB_CONTROLLER_HDRC, }; | |||
1376 | /* Initialize MUSB (M)HDRC part of the USB hardware subsystem; | 1376 | /* Initialize MUSB (M)HDRC part of the USB hardware subsystem; |
1377 | * configure endpoints, or take their config from silicon | 1377 | * configure endpoints, or take their config from silicon |
1378 | */ | 1378 | */ |
1379 | static int __devinit musb_core_init(u16 musb_type, struct musb *musb) | 1379 | static int musb_core_init(u16 musb_type, struct musb *musb) |
1380 | { | 1380 | { |
1381 | u8 reg; | 1381 | u8 reg; |
1382 | char *type; | 1382 | char *type; |
@@ -1759,8 +1759,7 @@ static void musb_irq_work(struct work_struct *data) | |||
1759 | * Init support | 1759 | * Init support |
1760 | */ | 1760 | */ |
1761 | 1761 | ||
1762 | static struct musb *__devinit | 1762 | static struct musb *allocate_instance(struct device *dev, |
1763 | allocate_instance(struct device *dev, | ||
1764 | struct musb_hdrc_config *config, void __iomem *mbase) | 1763 | struct musb_hdrc_config *config, void __iomem *mbase) |
1765 | { | 1764 | { |
1766 | struct musb *musb; | 1765 | struct musb *musb; |
@@ -1835,7 +1834,7 @@ static void musb_free(struct musb *musb) | |||
1835 | * @ctrl: virtual address of controller registers, | 1834 | * @ctrl: virtual address of controller registers, |
1836 | * not yet corrected for platform-specific offsets | 1835 | * not yet corrected for platform-specific offsets |
1837 | */ | 1836 | */ |
1838 | static int __devinit | 1837 | static int |
1839 | musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) | 1838 | musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl) |
1840 | { | 1839 | { |
1841 | int status; | 1840 | int status; |
@@ -2010,7 +2009,7 @@ fail0: | |||
2010 | /* all implementations (PCI bridge to FPGA, VLYNQ, etc) should just | 2009 | /* all implementations (PCI bridge to FPGA, VLYNQ, etc) should just |
2011 | * bridge to a platform device; this driver then suffices. | 2010 | * bridge to a platform device; this driver then suffices. |
2012 | */ | 2011 | */ |
2013 | static int __devinit musb_probe(struct platform_device *pdev) | 2012 | static int musb_probe(struct platform_device *pdev) |
2014 | { | 2013 | { |
2015 | struct device *dev = &pdev->dev; | 2014 | struct device *dev = &pdev->dev; |
2016 | int irq = platform_get_irq_byname(pdev, "mc"); | 2015 | int irq = platform_get_irq_byname(pdev, "mc"); |
diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c index 1d6e8af94c06..4c216790e86b 100644 --- a/drivers/usb/musb/musb_debugfs.c +++ b/drivers/usb/musb/musb_debugfs.c | |||
@@ -233,7 +233,7 @@ static const struct file_operations musb_test_mode_fops = { | |||
233 | .release = single_release, | 233 | .release = single_release, |
234 | }; | 234 | }; |
235 | 235 | ||
236 | int __devinit musb_init_debugfs(struct musb *musb) | 236 | int musb_init_debugfs(struct musb *musb) |
237 | { | 237 | { |
238 | struct dentry *root; | 238 | struct dentry *root; |
239 | struct dentry *file; | 239 | struct dentry *file; |
diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 24d39210d4ab..1b6b827b769f 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h | |||
@@ -178,8 +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 *__devinit | 181 | extern struct dma_controller *dma_controller_create(struct musb *, void __iomem *); |
182 | dma_controller_create(struct musb *, void __iomem *); | ||
183 | 182 | ||
184 | extern void dma_controller_destroy(struct dma_controller *); | 183 | extern void dma_controller_destroy(struct dma_controller *); |
185 | 184 | ||
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 80e2b03965c8..f8affd7a30c0 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -479,7 +479,7 @@ static struct musb_platform_ops dsps_ops = { | |||
479 | 479 | ||
480 | static u64 musb_dmamask = DMA_BIT_MASK(32); | 480 | static u64 musb_dmamask = DMA_BIT_MASK(32); |
481 | 481 | ||
482 | static int __devinit dsps_create_musb_pdev(struct dsps_glue *glue, u8 id) | 482 | static int dsps_create_musb_pdev(struct dsps_glue *glue, u8 id) |
483 | { | 483 | { |
484 | struct device *dev = glue->dev; | 484 | struct device *dev = glue->dev; |
485 | struct platform_device *pdev = to_platform_device(dev); | 485 | struct platform_device *pdev = to_platform_device(dev); |
@@ -592,7 +592,7 @@ err0: | |||
592 | return ret; | 592 | return ret; |
593 | } | 593 | } |
594 | 594 | ||
595 | static int __devinit dsps_probe(struct platform_device *pdev) | 595 | static int dsps_probe(struct platform_device *pdev) |
596 | { | 596 | { |
597 | struct device_node *np = pdev->dev.of_node; | 597 | struct device_node *np = pdev->dev.of_node; |
598 | const struct of_device_id *match; | 598 | const struct of_device_id *match; |
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 4f23b12a3ae7..876787438c2f 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1787,7 +1787,7 @@ static void musb_gadget_release(struct device *dev) | |||
1787 | } | 1787 | } |
1788 | 1788 | ||
1789 | 1789 | ||
1790 | static void __devinit | 1790 | static void |
1791 | init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) | 1791 | init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) |
1792 | { | 1792 | { |
1793 | struct musb_hw_ep *hw_ep = musb->endpoints + epnum; | 1793 | struct musb_hw_ep *hw_ep = musb->endpoints + epnum; |
@@ -1824,7 +1824,7 @@ init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) | |||
1824 | * Initialize the endpoints exposed to peripheral drivers, with backlinks | 1824 | * Initialize the endpoints exposed to peripheral drivers, with backlinks |
1825 | * to the rest of the driver state. | 1825 | * to the rest of the driver state. |
1826 | */ | 1826 | */ |
1827 | static inline void __devinit musb_g_init_endpoints(struct musb *musb) | 1827 | static inline void musb_g_init_endpoints(struct musb *musb) |
1828 | { | 1828 | { |
1829 | u8 epnum; | 1829 | u8 epnum; |
1830 | struct musb_hw_ep *hw_ep; | 1830 | struct musb_hw_ep *hw_ep; |
@@ -1857,7 +1857,7 @@ static inline void __devinit musb_g_init_endpoints(struct musb *musb) | |||
1857 | /* called once during driver setup to initialize and link into | 1857 | /* called once during driver setup to initialize and link into |
1858 | * the driver model; memory is zeroed. | 1858 | * the driver model; memory is zeroed. |
1859 | */ | 1859 | */ |
1860 | int __devinit musb_gadget_setup(struct musb *musb) | 1860 | int musb_gadget_setup(struct musb *musb) |
1861 | { | 1861 | { |
1862 | int status; | 1862 | int status; |
1863 | 1863 | ||
diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 0fc6ca6bc60a..3d1fd52a15a9 100644 --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c | |||
@@ -380,8 +380,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
380 | kfree(controller); | 380 | kfree(controller); |
381 | } | 381 | } |
382 | 382 | ||
383 | struct dma_controller *__devinit | 383 | struct dma_controller *dma_controller_create(struct musb *musb, void __iomem *base) |
384 | dma_controller_create(struct musb *musb, void __iomem *base) | ||
385 | { | 384 | { |
386 | struct musb_dma_controller *controller; | 385 | struct musb_dma_controller *controller; |
387 | struct device *dev = musb->controller; | 386 | struct device *dev = musb->controller; |
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 1150b4b6a090..06850f22739f 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -490,7 +490,7 @@ static const struct musb_platform_ops omap2430_ops = { | |||
490 | 490 | ||
491 | static u64 omap2430_dmamask = DMA_BIT_MASK(32); | 491 | static u64 omap2430_dmamask = DMA_BIT_MASK(32); |
492 | 492 | ||
493 | static int __devinit omap2430_probe(struct platform_device *pdev) | 493 | static int omap2430_probe(struct platform_device *pdev) |
494 | { | 494 | { |
495 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 495 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
496 | struct omap_musb_board_data *data; | 496 | struct omap_musb_board_data *data; |
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index b816517d8cbf..a03b7befd2e1 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -1153,7 +1153,7 @@ static const struct musb_platform_ops tusb_ops = { | |||
1153 | 1153 | ||
1154 | static u64 tusb_dmamask = DMA_BIT_MASK(32); | 1154 | static u64 tusb_dmamask = DMA_BIT_MASK(32); |
1155 | 1155 | ||
1156 | static int __devinit tusb_probe(struct platform_device *pdev) | 1156 | static int tusb_probe(struct platform_device *pdev) |
1157 | { | 1157 | { |
1158 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 1158 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
1159 | struct platform_device *musb; | 1159 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb/tusb6010_omap.c index 7a62b95dac24..2c46d42e6618 100644 --- a/drivers/usb/musb/tusb6010_omap.c +++ b/drivers/usb/musb/tusb6010_omap.c | |||
@@ -661,8 +661,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
661 | kfree(tusb_dma); | 661 | kfree(tusb_dma); |
662 | } | 662 | } |
663 | 663 | ||
664 | struct dma_controller *__devinit | 664 | struct dma_controller *dma_controller_create(struct musb *musb, void __iomem *base) |
665 | dma_controller_create(struct musb *musb, void __iomem *base) | ||
666 | { | 665 | { |
667 | void __iomem *tbase = musb->ctrl_base; | 666 | void __iomem *tbase = musb->ctrl_base; |
668 | struct tusb_omap_dma *tusb_dma; | 667 | struct tusb_omap_dma *tusb_dma; |
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index 1d815578dde5..6b12001eb88b 100644 --- a/drivers/usb/musb/ux500.c +++ b/drivers/usb/musb/ux500.c | |||
@@ -81,7 +81,7 @@ static const struct musb_platform_ops ux500_ops = { | |||
81 | .exit = ux500_musb_exit, | 81 | .exit = ux500_musb_exit, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | static int __devinit ux500_probe(struct platform_device *pdev) | 84 | static int ux500_probe(struct platform_device *pdev) |
85 | { | 85 | { |
86 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; | 86 | struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; |
87 | struct platform_device *musb; | 87 | struct platform_device *musb; |
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index f1059e725ea8..039e567dd3b6 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c | |||
@@ -364,8 +364,7 @@ void dma_controller_destroy(struct dma_controller *c) | |||
364 | kfree(controller); | 364 | kfree(controller); |
365 | } | 365 | } |
366 | 366 | ||
367 | struct dma_controller *__devinit | 367 | struct dma_controller *dma_controller_create(struct musb *musb, void __iomem *base) |
368 | dma_controller_create(struct musb *musb, void __iomem *base) | ||
369 | { | 368 | { |
370 | struct ux500_dma_controller *controller; | 369 | struct ux500_dma_controller *controller; |
371 | struct platform_device *pdev = to_platform_device(musb->controller); | 370 | struct platform_device *pdev = to_platform_device(musb->controller); |