diff options
Diffstat (limited to 'drivers/rtc/rtc-pcf2123.c')
-rw-r--r-- | drivers/rtc/rtc-pcf2123.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c index 1725b5090e33..d1953bb244c5 100644 --- a/drivers/rtc/rtc-pcf2123.c +++ b/drivers/rtc/rtc-pcf2123.c | |||
@@ -327,7 +327,7 @@ kfree_exit: | |||
327 | 327 | ||
328 | static int pcf2123_remove(struct spi_device *spi) | 328 | static int pcf2123_remove(struct spi_device *spi) |
329 | { | 329 | { |
330 | struct pcf2123_plat_data *pdata = spi->dev.platform_data; | 330 | struct pcf2123_plat_data *pdata = dev_get_platdata(&spi->dev); |
331 | int i; | 331 | int i; |
332 | 332 | ||
333 | if (pdata) { | 333 | if (pdata) { |