|
@@ -240,8 +240,6 @@ static int pm860x_touch_probe(struct platform_device *pdev)
|
|
if (!touch)
|
|
if (!touch)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
- platform_set_drvdata(pdev, touch);
|
|
|
|
-
|
|
|
|
touch->idev = devm_input_allocate_device(&pdev->dev);
|
|
touch->idev = devm_input_allocate_device(&pdev->dev);
|
|
if (!touch->idev) {
|
|
if (!touch->idev) {
|
|
dev_err(&pdev->dev, "Failed to allocate input device!\n");
|
|
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;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- platform_set_drvdata(pdev, touch);
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|