aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1760-if.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/isp1760-if.c')
-rw-r--r--drivers/usb/host/isp1760-if.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c
index fff114fd5461..bbb791bd7617 100644
--- a/drivers/usb/host/isp1760-if.c
+++ b/drivers/usb/host/isp1760-if.c
@@ -43,7 +43,6 @@ static int of_isp1760_probe(struct platform_device *dev)
43 struct device_node *dp = dev->dev.of_node; 43 struct device_node *dp = dev->dev.of_node;
44 struct resource *res; 44 struct resource *res;
45 struct resource memory; 45 struct resource memory;
46 struct of_irq oirq;
47 int virq; 46 int virq;
48 resource_size_t res_len; 47 resource_size_t res_len;
49 int ret; 48 int ret;
@@ -69,14 +68,12 @@ static int of_isp1760_probe(struct platform_device *dev)
69 goto free_data; 68 goto free_data;
70 } 69 }
71 70
72 if (of_irq_map_one(dp, 0, &oirq)) { 71 virq = irq_of_parse_and_map(dp, 0);
72 if (!virq) {
73 ret = -ENODEV; 73 ret = -ENODEV;
74 goto release_reg; 74 goto release_reg;
75 } 75 }
76 76
77 virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
78 oirq.size);
79
80 if (of_device_is_compatible(dp, "nxp,usb-isp1761")) 77 if (of_device_is_compatible(dp, "nxp,usb-isp1761"))
81 devflags |= ISP1760_FLAG_ISP1761; 78 devflags |= ISP1760_FLAG_ISP1761;
82 79
@@ -175,7 +172,7 @@ static struct platform_driver isp1760_of_driver = {
175#endif 172#endif
176 173
177#ifdef CONFIG_PCI 174#ifdef CONFIG_PCI
178static int __devinit isp1761_pci_probe(struct pci_dev *dev, 175static int isp1761_pci_probe(struct pci_dev *dev,
179 const struct pci_device_id *id) 176 const struct pci_device_id *id)
180{ 177{
181 u8 latency, limit; 178 u8 latency, limit;
@@ -349,7 +346,7 @@ static struct pci_driver isp1761_pci_driver = {
349}; 346};
350#endif 347#endif
351 348
352static int __devinit isp1760_plat_probe(struct platform_device *pdev) 349static int isp1760_plat_probe(struct platform_device *pdev)
353{ 350{
354 int ret = 0; 351 int ret = 0;
355 struct usb_hcd *hcd; 352 struct usb_hcd *hcd;
@@ -416,7 +413,7 @@ out:
416 return ret; 413 return ret;
417} 414}
418 415
419static int __devexit isp1760_plat_remove(struct platform_device *pdev) 416static int isp1760_plat_remove(struct platform_device *pdev)
420{ 417{
421 struct resource *mem_res; 418 struct resource *mem_res;
422 resource_size_t mem_size; 419 resource_size_t mem_size;
@@ -435,7 +432,7 @@ static int __devexit isp1760_plat_remove(struct platform_device *pdev)
435 432
436static struct platform_driver isp1760_plat_driver = { 433static struct platform_driver isp1760_plat_driver = {
437 .probe = isp1760_plat_probe, 434 .probe = isp1760_plat_probe,
438 .remove = __devexit_p(isp1760_plat_remove), 435 .remove = isp1760_plat_remove,
439 .driver = { 436 .driver = {
440 .name = "isp1760", 437 .name = "isp1760",
441 }, 438 },