aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 18:59:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 18:59:13 -0400
commitd09cc3659db494aca4b3bb2393c533fb4946b794 (patch)
tree158d1dd5fa5fddf1c99da677a193b8561c11274d /drivers/usb
parent82e627eb5e07d7993216c9e63fb5550cf6ed25d7 (diff)
parentc0ffa793994a7a69c37a96dabf38323eae1dffa6 (diff)
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next
Pull core irq updates from Thomas Gleixner: "The irq department delivers: - Another tree wide update to get rid of the horrible create_irq interface along with its even more horrible variants. That also gets rid of the last leftovers of the initial sparse irq hackery. arch/driver specific changes have been either acked or ignored. - A fix for the spurious interrupt detection logic with threaded interrupts. - A new ARM SoC interrupt controller - The usual pile of fixes and improvements all over the place" * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (40 commits) Documentation: brcmstb-l2: Add Broadcom STB Level-2 interrupt controller binding irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller genirq: Improve documentation to match current implementation ARM: iop13xx: fix msi support with sparse IRQ genirq: Provide !SMP stub for irq_set_affinity_notifier() irqchip: armada-370-xp: Move the devicetree binding documentation irqchip: gic: Use mask field in GICC_IAR genirq: Remove dynamic_irq mess ia64: Use irq_init_desc genirq: Replace dynamic_irq_init/cleanup genirq: Remove irq_reserve_irq[s] genirq: Replace reserve_irqs in core code s390: Avoid call to irq_reserve_irqs() s390: Remove pointless arch_show_interrupts() s390: pci: Check return value of alloc_irq_desc() proper sh: intc: Remove pointless irq_reserve_irqs() invocation x86, irq: Remove pointless irq_reserve_irqs() call genirq: Make create/destroy_irq() ia64 private tile: Use SPARSE_IRQ tile: pci: Use irq_alloc/free_hwirq() ...
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-tilegx.c8
-rw-r--r--drivers/usb/host/ohci-tilegx.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/host/ehci-tilegx.c b/drivers/usb/host/ehci-tilegx.c
index f3713d32c9a1..0d247673c3ca 100644
--- a/drivers/usb/host/ehci-tilegx.c
+++ b/drivers/usb/host/ehci-tilegx.c
@@ -142,8 +142,8 @@ static int ehci_hcd_tilegx_drv_probe(struct platform_device *pdev)
142 ehci->hcs_params = readl(&ehci->caps->hcs_params); 142 ehci->hcs_params = readl(&ehci->caps->hcs_params);
143 143
144 /* Create our IRQs and register them. */ 144 /* Create our IRQs and register them. */
145 pdata->irq = create_irq(); 145 pdata->irq = irq_alloc_hwirq(-1);
146 if (pdata->irq < 0) { 146 if (!pdata->irq) {
147 ret = -ENXIO; 147 ret = -ENXIO;
148 goto err_no_irq; 148 goto err_no_irq;
149 } 149 }
@@ -175,7 +175,7 @@ static int ehci_hcd_tilegx_drv_probe(struct platform_device *pdev)
175 } 175 }
176 176
177err_have_irq: 177err_have_irq:
178 destroy_irq(pdata->irq); 178 irq_free_hwirq(pdata->irq);
179err_no_irq: 179err_no_irq:
180 tilegx_stop_ehc(); 180 tilegx_stop_ehc();
181 usb_put_hcd(hcd); 181 usb_put_hcd(hcd);
@@ -193,7 +193,7 @@ static int ehci_hcd_tilegx_drv_remove(struct platform_device *pdev)
193 usb_put_hcd(hcd); 193 usb_put_hcd(hcd);
194 tilegx_stop_ehc(); 194 tilegx_stop_ehc();
195 gxio_usb_host_destroy(&pdata->usb_ctx); 195 gxio_usb_host_destroy(&pdata->usb_ctx);
196 destroy_irq(pdata->irq); 196 irq_free_hwirq(pdata->irq);
197 197
198 return 0; 198 return 0;
199} 199}
diff --git a/drivers/usb/host/ohci-tilegx.c b/drivers/usb/host/ohci-tilegx.c
index 0b183e0b0a8a..bef6dfb0405a 100644
--- a/drivers/usb/host/ohci-tilegx.c
+++ b/drivers/usb/host/ohci-tilegx.c
@@ -129,8 +129,8 @@ static int ohci_hcd_tilegx_drv_probe(struct platform_device *pdev)
129 tilegx_start_ohc(); 129 tilegx_start_ohc();
130 130
131 /* Create our IRQs and register them. */ 131 /* Create our IRQs and register them. */
132 pdata->irq = create_irq(); 132 pdata->irq = irq_alloc_hwirq(-1);
133 if (pdata->irq < 0) { 133 if (!pdata->irq) {
134 ret = -ENXIO; 134 ret = -ENXIO;
135 goto err_no_irq; 135 goto err_no_irq;
136 } 136 }
@@ -164,7 +164,7 @@ static int ohci_hcd_tilegx_drv_probe(struct platform_device *pdev)
164 } 164 }
165 165
166err_have_irq: 166err_have_irq:
167 destroy_irq(pdata->irq); 167 irq_free_hwirq(pdata->irq);
168err_no_irq: 168err_no_irq:
169 tilegx_stop_ohc(); 169 tilegx_stop_ohc();
170 usb_put_hcd(hcd); 170 usb_put_hcd(hcd);
@@ -182,7 +182,7 @@ static int ohci_hcd_tilegx_drv_remove(struct platform_device *pdev)
182 usb_put_hcd(hcd); 182 usb_put_hcd(hcd);
183 tilegx_stop_ohc(); 183 tilegx_stop_ohc();
184 gxio_usb_host_destroy(&pdata->usb_ctx); 184 gxio_usb_host_destroy(&pdata->usb_ctx);
185 destroy_irq(pdata->irq); 185 irq_free_hwirq(pdata->irq);
186 186
187 return 0; 187 return 0;
188} 188}