Commit 93316e26 authored by Thierry Reding's avatar Thierry Reding Committed by Greg Kroah-Hartman

ata: 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: default avatarThierry Reding <thierry.reding@avionic-design.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 903b33e0
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
* Copyright (C) 2006 Tower Technologies * Copyright (C) 2006 Tower Technologies
*/ */
#include <linux/err.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -937,9 +938,9 @@ static int ep93xx_pata_probe(struct platform_device *pdev) ...@@ -937,9 +938,9 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
goto err_rel_gpio; goto err_rel_gpio;
} }
ide_base = devm_request_and_ioremap(&pdev->dev, mem_res); ide_base = devm_ioremap_resource(&pdev->dev, mem_res);
if (!ide_base) { if (IS_ERR(ide_base)) {
err = -ENXIO; err = PTR_ERR(ide_base);
goto err_rel_gpio; goto err_rel_gpio;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment