mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
USB: isp1760-if: Change to use irq_of_parse_and_map
This uses irq_of_parse_and_map instead of of_irq_map_one and irq_create_of_mapping. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
596d789a21
commit
d124a60dbb
1 changed files with 2 additions and 5 deletions
|
@ -43,7 +43,6 @@ static int of_isp1760_probe(struct platform_device *dev)
|
||||||
struct device_node *dp = dev->dev.of_node;
|
struct device_node *dp = dev->dev.of_node;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
struct resource memory;
|
struct resource memory;
|
||||||
struct of_irq oirq;
|
|
||||||
int virq;
|
int virq;
|
||||||
resource_size_t res_len;
|
resource_size_t res_len;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -69,14 +68,12 @@ static int of_isp1760_probe(struct platform_device *dev)
|
||||||
goto free_data;
|
goto free_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (of_irq_map_one(dp, 0, &oirq)) {
|
virq = irq_of_parse_and_map(dp, 0);
|
||||||
|
if (!virq) {
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto release_reg;
|
goto release_reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
|
|
||||||
oirq.size);
|
|
||||||
|
|
||||||
if (of_device_is_compatible(dp, "nxp,usb-isp1761"))
|
if (of_device_is_compatible(dp, "nxp,usb-isp1761"))
|
||||||
devflags |= ISP1760_FLAG_ISP1761;
|
devflags |= ISP1760_FLAG_ISP1761;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue