mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
of/irq: Use irq_of_parse_and_map()
Replace some instances of of_irq_map_one()/irq_create_of_mapping() and of_irq_to_resource() by the simpler equivalent irq_of_parse_and_map(). Signed-off-by: Thierry Reding <[email protected]> Acked-by: Rob Herring <[email protected]> [grant.likely: resolved conflicts with core code renames] Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
3da5278727
commit
f7578496a6
16 changed files with 35 additions and 39 deletions
|
|
@ -1207,7 +1207,7 @@ static int cpm_uart_init_port(struct device_node *np,
|
|||
pinfo->port.fifosize = pinfo->tx_nrfifos * pinfo->tx_fifosize;
|
||||
spin_lock_init(&pinfo->port.lock);
|
||||
|
||||
pinfo->port.irq = of_irq_to_resource(np, 0, NULL);
|
||||
pinfo->port.irq = irq_of_parse_and_map(np, 0);
|
||||
if (pinfo->port.irq == NO_IRQ) {
|
||||
ret = -EINVAL;
|
||||
goto out_pram;
|
||||
|
|
|
|||
Loading…
Reference in a new issue