Skip to content

Commit 9601fa8

Browse files
Mukesh Ojhadtor
authored andcommitted
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 46bec7a commit 9601fa8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/input/touchscreen/sun4i-ts.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ static int sun4i_ts_probe(struct platform_device *pdev)
300300
input_set_drvdata(ts->input, ts);
301301
}
302302

303-
ts->base = devm_ioremap_resource(dev,
304-
platform_get_resource(pdev, IORESOURCE_MEM, 0));
303+
ts->base = devm_platform_ioremap_resource(pdev, 0);
305304
if (IS_ERR(ts->base))
306305
return PTR_ERR(ts->base);
307306

0 commit comments

Comments
 (0)