aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-03-11 19:18:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-12 19:26:27 -0400
commit388f7bd24d2ffc945ad08be3a592672c1e32156e (patch)
tree3ea9a9fa65d3ce7400ecb07a8b6a69da4de78906 /drivers/w1
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff)
w1: mxc_w1: Convert to devm_ioremap_resource()
According to Documentation/driver-model/devres.txt: devm_request_and_ioremap() : obsoleted by devm_ioremap_resource() Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/masters/mxc_w1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index 950d354d50e2..47e12cfc2a57 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -121,9 +121,9 @@ static int mxc_w1_probe(struct platform_device *pdev)
121 mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1; 121 mdev->clkdiv = (clk_get_rate(mdev->clk) / 1000000) - 1;
122 122
123 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 123 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
124 mdev->regs = devm_request_and_ioremap(&pdev->dev, res); 124 mdev->regs = devm_ioremap_resource(&pdev->dev, res);
125 if (!mdev->regs) 125 if (IS_ERR(mdev->regs))
126 return -EBUSY; 126 return PTR_ERR(mdev->regs);
127 127
128 clk_prepare_enable(mdev->clk); 128 clk_prepare_enable(mdev->clk);
129 __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER); 129 __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER);