Commit 9601fa8f authored by Mukesh Ojha's avatar Mukesh Ojha Committed by Dmitry Torokhov

Input: sun4i-ts - use devm_platform_ioremap_resource()

devm_platform_ioremap_resource() internally have platform_get_resource()
and devm_ioremap_resource() in it. So instead of calling them separately
use devm_platform_ioremap_resource() directly.
Signed-off-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 46bec7a9
...@@ -300,8 +300,7 @@ static int sun4i_ts_probe(struct platform_device *pdev) ...@@ -300,8 +300,7 @@ static int sun4i_ts_probe(struct platform_device *pdev)
input_set_drvdata(ts->input, ts); input_set_drvdata(ts->input, ts);
} }
ts->base = devm_ioremap_resource(dev, ts->base = devm_platform_ioremap_resource(pdev, 0);
platform_get_resource(pdev, IORESOURCE_MEM, 0));
if (IS_ERR(ts->base)) if (IS_ERR(ts->base))
return PTR_ERR(ts->base); return PTR_ERR(ts->base);
......
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