aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-01-21 05:08:58 -0500
committerJeff Garzik <jgarzik@redhat.com>2013-02-20 17:13:10 -0500
commit9b2b1ca5b738727707d1c9d5dbc70b1a0a813467 (patch)
tree76988bf2e2b728e181f95c34cbc05b537077e891
parent163cf81d266f017d718ef786fbbb6b2513ce7ec3 (diff)
[libata] 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: linux-ide@vger.kernel.org Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/ata/pata_ep93xx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c
index 556222f04731..c1bfaf43d109 100644
--- a/drivers/ata/pata_ep93xx.c
+++ b/drivers/ata/pata_ep93xx.c
@@ -31,6 +31,7 @@
31 * Copyright (C) 2006 Tower Technologies 31 * Copyright (C) 2006 Tower Technologies
32 */ 32 */
33 33
34#include <linux/err.h>
34#include <linux/kernel.h> 35#include <linux/kernel.h>
35#include <linux/module.h> 36#include <linux/module.h>
36#include <linux/init.h> 37#include <linux/init.h>
@@ -937,9 +938,9 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
937 goto err_rel_gpio; 938 goto err_rel_gpio;
938 } 939 }
939 940
940 ide_base = devm_request_and_ioremap(&pdev->dev, mem_res); 941 ide_base = devm_ioremap_resource(&pdev->dev, mem_res);
941 if (!ide_base) { 942 if (IS_ERR(ide_base)) {
942 err = -ENXIO; 943 err = PTR_ERR(ide_base);
943 goto err_rel_gpio; 944 goto err_rel_gpio;
944 } 945 }
945 946