]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/input/touchscreen/88pm860x-ts.c
Input: touchscreen - drop calls to platform_set_drvdata and i2c_set_clientdata
[karo-tx-linux.git] / drivers / input / touchscreen / 88pm860x-ts.c
index 251ff2aa0633170a7c1bcf09c1ba194893a53cd9..7ed828a51f4c87883ca4258a5cc1ca9cad375dcc 100644 (file)
@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
        if (!touch)
                return -ENOMEM;
 
-       platform_set_drvdata(pdev, touch);
-
        touch->idev = devm_input_allocate_device(&pdev->dev);
        if (!touch->idev) {
                dev_err(&pdev->dev, "Failed to allocate input device!\n");
@@ -285,7 +283,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
                return ret;
        }
 
-       platform_set_drvdata(pdev, touch);
        return 0;
 }