diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2013-01-21 11:08:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 12:21:45 -0800 |
commit | 5857bd98dbd0080e6b27b51087cc9ec24f426e8b (patch) | |
tree | 5527eeca02ac9c36b280ebfb054e090728174003 /arch/arm/plat-samsung | |
parent | 84dbf809fbae0591d319a7ea76e6032ff434824c (diff) | |
download | blackbird-op-linux-5857bd98dbd0080e6b27b51087cc9ec24f426e8b.tar.gz blackbird-op-linux-5857bd98dbd0080e6b27b51087cc9ec24f426e8b.zip |
ARM: 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>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/adc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c index 2d676ab50f73..ca07cb1b155a 100644 --- a/arch/arm/plat-samsung/adc.c +++ b/arch/arm/plat-samsung/adc.c @@ -386,11 +386,9 @@ static int s3c_adc_probe(struct platform_device *pdev) return -ENXIO; } - adc->regs = devm_request_and_ioremap(dev, regs); - if (!adc->regs) { - dev_err(dev, "failed to map registers\n"); - return -ENXIO; - } + adc->regs = devm_ioremap_resource(dev, regs); + if (IS_ERR(adc->regs)) + return PTR_ERR(adc->regs); ret = regulator_enable(adc->vdd); if (ret) |