linux-mips
[Top] [All Lists]

[PATCH 1/5] MIPS: ralink: Use devm_ioremap_resource

To: linux-kernel@vger.kernel.org
Subject: [PATCH 1/5] MIPS: ralink: Use devm_ioremap_resource
From: Tushar Behera <tushar.behera@linaro.org>
Date: Thu, 31 Oct 2013 16:38:03 +0530
Cc: patches@linaro.org, linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org>, Ralf Baechle <ralf@linux-mips.org>
In-reply-to: <1383217687-12037-1-git-send-email-tushar.behera@linaro.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1383217687-12037-1-git-send-email-tushar.behera@linaro.org>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: linux-mips@linux-mips.org
CC: John Crispin <blogic@openwrt.org>
CC: Ralf Baechle <ralf@linux-mips.org>
---
 arch/mips/ralink/timer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/ralink/timer.c b/arch/mips/ralink/timer.c
index e49241a..2027857 100644
--- a/arch/mips/ralink/timer.c
+++ b/arch/mips/ralink/timer.c
@@ -126,7 +126,7 @@ static int rt_timer_probe(struct platform_device *pdev)
                return -ENOENT;
        }
 
-       rt->membase = devm_request_and_ioremap(&pdev->dev, res);
+       rt->membase = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(rt->membase))
                return PTR_ERR(rt->membase);
 
-- 
1.7.9.5


<Prev in Thread] Current Thread [Next in Thread>