diff options
Diffstat (limited to 'drivers/input/touchscreen/88pm860x-ts.c')
-rw-r--r-- | drivers/input/touchscreen/88pm860x-ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c index f7de14a268bf..544e20c551f8 100644 --- a/drivers/input/touchscreen/88pm860x-ts.c +++ b/drivers/input/touchscreen/88pm860x-ts.c | |||
@@ -172,7 +172,7 @@ static int pm860x_touch_dt_init(struct platform_device *pdev, | |||
172 | static int pm860x_touch_probe(struct platform_device *pdev) | 172 | static int pm860x_touch_probe(struct platform_device *pdev) |
173 | { | 173 | { |
174 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); | 174 | struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); |
175 | struct pm860x_touch_pdata *pdata = pdev->dev.platform_data; | 175 | struct pm860x_touch_pdata *pdata = dev_get_platdata(&pdev->dev); |
176 | struct pm860x_touch *touch; | 176 | struct pm860x_touch *touch; |
177 | struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ | 177 | struct i2c_client *i2c = (chip->id == CHIP_PM8607) ? chip->client \ |
178 | : chip->companion; | 178 | : chip->companion; |