diff options
author | Mukesh Ojha <mojha@codeaurora.org> | 2019-07-16 09:34:39 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-07-24 12:49:13 +0300 |
commit | f8890bd2875bf9d6aca4cd7fbf246364dbeb8a0f (patch) | |
tree | faf6a768865d89c511a3e8c53d22b4e019c3ef84 /drivers/input | |
parent | 9601fa8fa9feb90afdddab345d942e33aa505835 (diff) | |
download | linux-f8890bd2875bf9d6aca4cd7fbf246364dbeb8a0f.tar.gz linux-f8890bd2875bf9d6aca4cd7fbf246364dbeb8a0f.tar.bz2 linux-f8890bd2875bf9d6aca4cd7fbf246364dbeb8a0f.zip |
Input: ts4800-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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/ts4800-ts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/ts4800-ts.c b/drivers/input/touchscreen/ts4800-ts.c index fed73eeb47b3..5b4f5362c67b 100644 --- a/drivers/input/touchscreen/ts4800-ts.c +++ b/drivers/input/touchscreen/ts4800-ts.c @@ -148,7 +148,6 @@ static int ts4800_ts_probe(struct platform_device *pdev) { struct input_polled_dev *poll_dev; struct ts4800_ts *ts; - struct resource *res; int error; ts = devm_kzalloc(&pdev->dev, sizeof(*ts), GFP_KERNEL); @@ -159,8 +158,7 @@ static int ts4800_ts_probe(struct platform_device *pdev) if (error) return error; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ts->base = devm_ioremap_resource(&pdev->dev, res); + ts->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ts->base)) return PTR_ERR(ts->base); |