mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -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
|
|
@ -224,7 +224,7 @@ static int caam_probe(struct platform_device *pdev)
|
|||
topregs = (struct caam_full __iomem *)ctrl;
|
||||
|
||||
/* Get the IRQ of the controller (for security violations only) */
|
||||
ctrlpriv->secvio_irq = of_irq_to_resource(nprop, 0, NULL);
|
||||
ctrlpriv->secvio_irq = irq_of_parse_and_map(nprop, 0);
|
||||
|
||||
/*
|
||||
* Enable DECO watchdogs and, if this is a PHYS_ADDR_T_64BIT kernel,
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ int caam_jr_probe(struct platform_device *pdev, struct device_node *np,
|
|||
dma_set_mask(jrdev, DMA_BIT_MASK(32));
|
||||
|
||||
/* Identify the interrupt */
|
||||
jrpriv->irq = of_irq_to_resource(np, 0, NULL);
|
||||
jrpriv->irq = irq_of_parse_and_map(np, 0);
|
||||
|
||||
/* Now do the platform independent part */
|
||||
error = caam_jr_init(jrdev); /* now turn on hardware */
|
||||
|
|
|
|||
|
|
@ -1818,7 +1818,7 @@ static int omap_sham_get_res_of(struct omap_sham_dev *dd,
|
|||
goto err;
|
||||
}
|
||||
|
||||
dd->irq = of_irq_to_resource(node, 0, NULL);
|
||||
dd->irq = irq_of_parse_and_map(node, 0);
|
||||
if (!dd->irq) {
|
||||
dev_err(dev, "can't translate OF irq value\n");
|
||||
err = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue