diff options
Diffstat (limited to 'drivers/gpio/gpio-74x164.c')
-rw-r--r-- | drivers/gpio/gpio-74x164.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index 721607904d0a..5d518d5db7a0 100644 --- a/drivers/gpio/gpio-74x164.c +++ b/drivers/gpio/gpio-74x164.c | |||
@@ -129,7 +129,7 @@ static int gen_74x164_probe(struct spi_device *spi) | |||
129 | if (!chip) | 129 | if (!chip) |
130 | return -ENOMEM; | 130 | return -ENOMEM; |
131 | 131 | ||
132 | pdata = spi->dev.platform_data; | 132 | pdata = dev_get_platdata(&spi->dev); |
133 | if (pdata && pdata->base) | 133 | if (pdata && pdata->base) |
134 | chip->gpio_chip.base = pdata->base; | 134 | chip->gpio_chip.base = pdata->base; |
135 | else | 135 | else |