summaryrefslogtreecommitdiff
path: root/drivers/input/misc/gp2ap002a00f.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/gp2ap002a00f.c')
-rw-r--r--drivers/input/misc/gp2ap002a00f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/gp2ap002a00f.c b/drivers/input/misc/gp2ap002a00f.c
index fe30bd0fe4bd..de21e317da32 100644
--- a/drivers/input/misc/gp2ap002a00f.c
+++ b/drivers/input/misc/gp2ap002a00f.c
@@ -125,7 +125,7 @@ static int gp2a_initialize(struct gp2a_data *dt)
static int gp2a_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- const struct gp2a_platform_data *pdata = client->dev.platform_data;
+ const struct gp2a_platform_data *pdata = dev_get_platdata(&client->dev);
struct gp2a_data *dt;
int error;