diff options
Diffstat (limited to 'drivers/mfd/tc3589x.c')
-rw-r--r-- | drivers/mfd/tc3589x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 4cb92bb2aea2..70f4909fee13 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c | |||
@@ -325,7 +325,7 @@ static int tc3589x_of_probe(struct device_node *np, | |||
325 | static int tc3589x_probe(struct i2c_client *i2c, | 325 | static int tc3589x_probe(struct i2c_client *i2c, |
326 | const struct i2c_device_id *id) | 326 | const struct i2c_device_id *id) |
327 | { | 327 | { |
328 | struct tc3589x_platform_data *pdata = i2c->dev.platform_data; | 328 | struct tc3589x_platform_data *pdata = dev_get_platdata(&i2c->dev); |
329 | struct device_node *np = i2c->dev.of_node; | 329 | struct device_node *np = i2c->dev.of_node; |
330 | struct tc3589x *tc3589x; | 330 | struct tc3589x *tc3589x; |
331 | int ret; | 331 | int ret; |