diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-09-18 09:24:44 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2013-10-24 06:50:35 -0400 |
commit | f7578496a671a96e501f16a5104893275e32c33a (patch) | |
tree | f1bc2db4847acdea2bb4c777782b29c35c084ae2 /drivers/i2c/busses | |
parent | 3da5278727a895d49a601f67fd49dffa0b80f9a5 (diff) |
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-cpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index b2b8aa9adc0e..3e5ea2c87a6e 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c | |||
@@ -447,7 +447,7 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm) | |||
447 | 447 | ||
448 | init_waitqueue_head(&cpm->i2c_wait); | 448 | init_waitqueue_head(&cpm->i2c_wait); |
449 | 449 | ||
450 | cpm->irq = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); | 450 | cpm->irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
451 | if (!cpm->irq) | 451 | if (!cpm->irq) |
452 | return -EINVAL; | 452 | return -EINVAL; |
453 | 453 | ||