diff options
-rw-r--r-- | drivers/rtc/rtc-ds1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index dd6170acde95..80f323731ee2 100644 --- a/drivers/rtc/rtc-ds1305.c +++ b/drivers/rtc/rtc-ds1305.c | |||
@@ -606,7 +606,7 @@ static int ds1305_probe(struct spi_device *spi) | |||
606 | struct ds1305 *ds1305; | 606 | struct ds1305 *ds1305; |
607 | int status; | 607 | int status; |
608 | u8 addr, value; | 608 | u8 addr, value; |
609 | struct ds1305_platform_data *pdata = spi->dev.platform_data; | 609 | struct ds1305_platform_data *pdata = dev_get_platdata(&spi->dev); |
610 | bool write_ctrl = false; | 610 | bool write_ctrl = false; |
611 | 611 | ||
612 | /* Sanity check board setup data. This may be hooked up | 612 | /* Sanity check board setup data. This may be hooked up |