summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukesh Ojha <mojha@codeaurora.org>2019-07-16 09:34:13 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-24 12:49:13 +0300
commit9601fa8fa9feb90afdddab345d942e33aa505835 (patch)
treebf3f870ab1f4c02fe6f8e6b0ca1ec7bdd7474b39
parent46bec7a918715d3b0e8d22e5e99d3245c1097c65 (diff)
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: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/sun4i-ts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/sun4i-ts.c b/drivers/input/touchscreen/sun4i-ts.c
index 92f6e1ae23a2..4e83e96bb73f 100644
--- a/drivers/input/touchscreen/sun4i-ts.c
+++ b/drivers/input/touchscreen/sun4i-ts.c
@@ -300,8 +300,7 @@ static int sun4i_ts_probe(struct platform_device *pdev)
input_set_drvdata(ts->input, ts);
}
- ts->base = devm_ioremap_resource(dev,
- platform_get_resource(pdev, IORESOURCE_MEM, 0));
+ ts->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(ts->base))
return PTR_ERR(ts->base);