diff options
Diffstat (limited to 'drivers/usb/host/isp1760-if.c')
-rw-r--r-- | drivers/usb/host/isp1760-if.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index fff114fd5461..958379f9de79 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 | ||