aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-11-19 13:21:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 16:27:16 -0500
commit41ac7b3ab7fe1d6175839947a877fdf95cbd2211 (patch)
tree99cfe77797b6822424e37e365297d991e0800ab6 /drivers/usb/dwc3
parent7690417db5085f0de03aa70b8ca01b0118e8a1b4 (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/dwc3')
-rw-r--r--drivers/usb/dwc3/core.c11
-rw-r--r--drivers/usb/dwc3/debugfs.c2
-rw-r--r--drivers/usb/dwc3/dwc3-exynos.c4
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c4
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c4
-rw-r--r--drivers/usb/dwc3/gadget.c4
6 files changed, 14 insertions, 15 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index cc5dac11d305..71610800cd88 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -140,8 +140,7 @@ static void dwc3_free_one_event_buffer(struct dwc3 *dwc,
140 * Returns a pointer to the allocated event buffer structure on success 140 * Returns a pointer to the allocated event buffer structure on success
141 * otherwise ERR_PTR(errno). 141 * otherwise ERR_PTR(errno).
142 */ 142 */
143static struct dwc3_event_buffer *__devinit 143static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, unsigned length)
144dwc3_alloc_one_event_buffer(struct dwc3 *dwc, unsigned length)
145{ 144{
146 struct dwc3_event_buffer *evt; 145 struct dwc3_event_buffer *evt;
147 146
@@ -183,7 +182,7 @@ static void dwc3_free_event_buffers(struct dwc3 *dwc)
183 * Returns 0 on success otherwise negative errno. In the error case, dwc 182 * Returns 0 on success otherwise negative errno. In the error case, dwc
184 * may contain some buffers allocated but not all which were requested. 183 * may contain some buffers allocated but not all which were requested.
185 */ 184 */
186static int __devinit dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length) 185static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length)
187{ 186{
188 int num; 187 int num;
189 int i; 188 int i;
@@ -260,7 +259,7 @@ static void dwc3_event_buffers_cleanup(struct dwc3 *dwc)
260 } 259 }
261} 260}
262 261
263static void __devinit dwc3_cache_hwparams(struct dwc3 *dwc) 262static void dwc3_cache_hwparams(struct dwc3 *dwc)
264{ 263{
265 struct dwc3_hwparams *parms = &dwc->hwparams; 264 struct dwc3_hwparams *parms = &dwc->hwparams;
266 265
@@ -281,7 +280,7 @@ static void __devinit dwc3_cache_hwparams(struct dwc3 *dwc)
281 * 280 *
282 * Returns 0 on success otherwise negative errno. 281 * Returns 0 on success otherwise negative errno.
283 */ 282 */
284static int __devinit dwc3_core_init(struct dwc3 *dwc) 283static int dwc3_core_init(struct dwc3 *dwc)
285{ 284{
286 unsigned long timeout; 285 unsigned long timeout;
287 u32 reg; 286 u32 reg;
@@ -360,7 +359,7 @@ static void dwc3_core_exit(struct dwc3 *dwc)
360 359
361#define DWC3_ALIGN_MASK (16 - 1) 360#define DWC3_ALIGN_MASK (16 - 1)
362 361
363static int __devinit dwc3_probe(struct platform_device *pdev) 362static int dwc3_probe(struct platform_device *pdev)
364{ 363{
365 struct device_node *node = pdev->dev.of_node; 364 struct device_node *node = pdev->dev.of_node;
366 struct resource *res; 365 struct resource *res;
diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c
index d4a30f118724..33ae98c52781 100644
--- a/drivers/usb/dwc3/debugfs.c
+++ b/drivers/usb/dwc3/debugfs.c
@@ -652,7 +652,7 @@ static const struct file_operations dwc3_link_state_fops = {
652 .release = single_release, 652 .release = single_release,
653}; 653};
654 654
655int __devinit dwc3_debugfs_init(struct dwc3 *dwc) 655int dwc3_debugfs_init(struct dwc3 *dwc)
656{ 656{
657 struct dentry *root; 657 struct dentry *root;
658 struct dentry *file; 658 struct dentry *file;
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 19a98184e580..d43f0760ca63 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -34,7 +34,7 @@ struct dwc3_exynos {
34 struct clk *clk; 34 struct clk *clk;
35}; 35};
36 36
37static int __devinit dwc3_exynos_register_phys(struct dwc3_exynos *exynos) 37static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos)
38{ 38{
39 struct nop_usb_xceiv_platform_data pdata; 39 struct nop_usb_xceiv_platform_data pdata;
40 struct platform_device *pdev; 40 struct platform_device *pdev;
@@ -90,7 +90,7 @@ err1:
90 90
91static u64 dwc3_exynos_dma_mask = DMA_BIT_MASK(32); 91static u64 dwc3_exynos_dma_mask = DMA_BIT_MASK(32);
92 92
93static int __devinit dwc3_exynos_probe(struct platform_device *pdev) 93static int dwc3_exynos_probe(struct platform_device *pdev)
94{ 94{
95 struct platform_device *dwc3; 95 struct platform_device *dwc3;
96 struct dwc3_exynos *exynos; 96 struct dwc3_exynos *exynos;
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index afbc6e99188c..e114bb58ccf4 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -157,7 +157,7 @@ static inline void dwc3_omap_writel(void __iomem *base, u32 offset, u32 value)
157 writel(value, base + offset); 157 writel(value, base + offset);
158} 158}
159 159
160static int __devinit dwc3_omap_register_phys(struct dwc3_omap *omap) 160static int dwc3_omap_register_phys(struct dwc3_omap *omap)
161{ 161{
162 struct nop_usb_xceiv_platform_data pdata; 162 struct nop_usb_xceiv_platform_data pdata;
163 struct platform_device *pdev; 163 struct platform_device *pdev;
@@ -262,7 +262,7 @@ static irqreturn_t dwc3_omap_interrupt(int irq, void *_omap)
262 return IRQ_HANDLED; 262 return IRQ_HANDLED;
263} 263}
264 264
265static int __devinit dwc3_omap_probe(struct platform_device *pdev) 265static int dwc3_omap_probe(struct platform_device *pdev)
266{ 266{
267 struct dwc3_omap_data *pdata = pdev->dev.platform_data; 267 struct dwc3_omap_data *pdata = pdev->dev.platform_data;
268 struct device_node *node = pdev->dev.of_node; 268 struct device_node *node = pdev->dev.of_node;
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index b3eeec7c6bc8..68e389b589d6 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -58,7 +58,7 @@ struct dwc3_pci {
58 struct platform_device *usb3_phy; 58 struct platform_device *usb3_phy;
59}; 59};
60 60
61static int __devinit dwc3_pci_register_phys(struct dwc3_pci *glue) 61static int dwc3_pci_register_phys(struct dwc3_pci *glue)
62{ 62{
63 struct nop_usb_xceiv_platform_data pdata; 63 struct nop_usb_xceiv_platform_data pdata;
64 struct platform_device *pdev; 64 struct platform_device *pdev;
@@ -112,7 +112,7 @@ err1:
112 return ret; 112 return ret;
113} 113}
114 114
115static int __devinit dwc3_pci_probe(struct pci_dev *pci, 115static int dwc3_pci_probe(struct pci_dev *pci,
116 const struct pci_device_id *id) 116 const struct pci_device_id *id)
117{ 117{
118 struct resource res[2]; 118 struct resource res[2];
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 7b7deddf6a52..2e43b332aae8 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1579,7 +1579,7 @@ static const struct usb_gadget_ops dwc3_gadget_ops = {
1579 1579
1580/* -------------------------------------------------------------------------- */ 1580/* -------------------------------------------------------------------------- */
1581 1581
1582static int __devinit dwc3_gadget_init_endpoints(struct dwc3 *dwc) 1582static int dwc3_gadget_init_endpoints(struct dwc3 *dwc)
1583{ 1583{
1584 struct dwc3_ep *dep; 1584 struct dwc3_ep *dep;
1585 u8 epnum; 1585 u8 epnum;
@@ -2374,7 +2374,7 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
2374 * 2374 *
2375 * Returns 0 on success otherwise negative errno. 2375 * Returns 0 on success otherwise negative errno.
2376 */ 2376 */
2377int __devinit dwc3_gadget_init(struct dwc3 *dwc) 2377int dwc3_gadget_init(struct dwc3 *dwc)
2378{ 2378{
2379 u32 reg; 2379 u32 reg;
2380 int ret; 2380 int ret;