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:
Thierry Reding 2013-09-18 15:24:44 +02:00 • committed by Grant Likely
commit f7578496a6
16 changed files with 35 additions and 39 deletions

View file

@ -447,7 +447,7 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm)
init_waitqueue_head(&cpm->i2c_wait);
cpm->irq = of_irq_to_resource(ofdev->dev.of_node, 0, NULL);
cpm->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);
if (!cpm->irq)
return -EINVAL;