Skip to content

Commit 9d41cbe

Browse files
Mukesh Ojhadtor
authored andcommitted
Input: fsl-imx25-tcq - 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 5d4b45a commit 9d41cbe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/input/touchscreen/fsl-imx25-tcq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ static int mx25_tcq_probe(struct platform_device *pdev)
503503
struct input_dev *idev;
504504
struct mx25_tcq_priv *priv;
505505
struct mx25_tsadc *tsadc = dev_get_drvdata(dev->parent);
506-
struct resource *res;
507506
void __iomem *mem;
508507
int error;
509508

@@ -512,8 +511,7 @@ static int mx25_tcq_probe(struct platform_device *pdev)
512511
return -ENOMEM;
513512
priv->dev = dev;
514513

515-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
516-
mem = devm_ioremap_resource(dev, res);
514+
mem = devm_platform_ioremap_resource(pdev, 0);
517515
if (IS_ERR(mem))
518516
return PTR_ERR(mem);
519517

0 commit comments

Comments
 (0)