diff options
Diffstat (limited to 'drivers/gpio/gpio-sx150x.c')
-rw-r--r-- | drivers/gpio/gpio-sx150x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sx150x.c b/drivers/gpio/gpio-sx150x.c index f371732591d2..d2983e9ad6af 100644 --- a/drivers/gpio/gpio-sx150x.c +++ b/drivers/gpio/gpio-sx150x.c | |||
@@ -583,7 +583,7 @@ static int sx150x_probe(struct i2c_client *client, | |||
583 | struct sx150x_chip *chip; | 583 | struct sx150x_chip *chip; |
584 | int rc; | 584 | int rc; |
585 | 585 | ||
586 | pdata = client->dev.platform_data; | 586 | pdata = dev_get_platdata(&client->dev); |
587 | if (!pdata) | 587 | if (!pdata) |
588 | return -EINVAL; | 588 | return -EINVAL; |
589 | 589 | ||