diff options
Diffstat (limited to 'drivers/gpio/gpio-adp5588.c')
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index 2ba56987db04..90fc4c99c024 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c | |||
@@ -276,7 +276,8 @@ static irqreturn_t adp5588_irq_handler(int irq, void *devid) | |||
276 | static int adp5588_irq_setup(struct adp5588_gpio *dev) | 276 | static int adp5588_irq_setup(struct adp5588_gpio *dev) |
277 | { | 277 | { |
278 | struct i2c_client *client = dev->client; | 278 | struct i2c_client *client = dev->client; |
279 | struct adp5588_gpio_platform_data *pdata = client->dev.platform_data; | 279 | struct adp5588_gpio_platform_data *pdata = |
280 | dev_get_platdata(&client->dev); | ||
280 | unsigned gpio; | 281 | unsigned gpio; |
281 | int ret; | 282 | int ret; |
282 | 283 | ||
@@ -349,7 +350,8 @@ static void adp5588_irq_teardown(struct adp5588_gpio *dev) | |||
349 | static int adp5588_gpio_probe(struct i2c_client *client, | 350 | static int adp5588_gpio_probe(struct i2c_client *client, |
350 | const struct i2c_device_id *id) | 351 | const struct i2c_device_id *id) |
351 | { | 352 | { |
352 | struct adp5588_gpio_platform_data *pdata = client->dev.platform_data; | 353 | struct adp5588_gpio_platform_data *pdata = |
354 | dev_get_platdata(&client->dev); | ||
353 | struct adp5588_gpio *dev; | 355 | struct adp5588_gpio *dev; |
354 | struct gpio_chip *gc; | 356 | struct gpio_chip *gc; |
355 | int ret, i, revid; | 357 | int ret, i, revid; |
@@ -440,7 +442,8 @@ err: | |||
440 | 442 | ||
441 | static int adp5588_gpio_remove(struct i2c_client *client) | 443 | static int adp5588_gpio_remove(struct i2c_client *client) |
442 | { | 444 | { |
443 | struct adp5588_gpio_platform_data *pdata = client->dev.platform_data; | 445 | struct adp5588_gpio_platform_data *pdata = |
446 | dev_get_platdata(&client->dev); | ||
444 | struct adp5588_gpio *dev = i2c_get_clientdata(client); | 447 | struct adp5588_gpio *dev = i2c_get_clientdata(client); |
445 | int ret; | 448 | int ret; |
446 | 449 | ||