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 <treding@nvidia.com> Acked-by: Rob Herring <rob.herring@calxeda.com> [grant.likely: resolved conflicts with core code renames] Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:

committed by
Grant Likely

parent
3da5278727
commit
f7578496a6
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user