diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2013-01-21 05:09:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-22 14:41:57 -0500 |
commit | 6d4294d1634543853febc4287ecf02998fd234e1 (patch) | |
tree | 1614d14d3879557860ae9d78169e555f67c70170 /drivers/pwm/pwm-puv3.c | |
parent | 9e0c1fb29a7c257a31c321c2437617b6b4d66168 (diff) |
pwm: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pwm/pwm-puv3.c')
-rw-r--r-- | drivers/pwm/pwm-puv3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-puv3.c b/drivers/pwm/pwm-puv3.c index b882f6032fee..db964e6ecf5c 100644 --- a/drivers/pwm/pwm-puv3.c +++ b/drivers/pwm/pwm-puv3.c | |||
@@ -123,9 +123,9 @@ static int pwm_probe(struct platform_device *pdev) | |||
123 | return -ENODEV; | 123 | return -ENODEV; |
124 | } | 124 | } |
125 | 125 | ||
126 | puv3->base = devm_request_and_ioremap(&pdev->dev, r); | 126 | puv3->base = devm_ioremap_resource(&pdev->dev, r); |
127 | if (puv3->base == NULL) | 127 | if (IS_ERR(puv3->base)) |
128 | return -EADDRNOTAVAIL; | 128 | return PTR_ERR(puv3->base); |
129 | 129 | ||
130 | puv3->chip.dev = &pdev->dev; | 130 | puv3->chip.dev = &pdev->dev; |
131 | puv3->chip.ops = &puv3_pwm_ops; | 131 | puv3->chip.ops = &puv3_pwm_ops; |