]> Pileus Git - ~andy/linux/blobdiff - drivers/rtc/rtc-ds1305.c
ARM: 7894/1: kconfig: select GENERIC_CLOCKEVENTS if HAVE_ARM_ARCH_TIMER
[~andy/linux] / drivers / rtc / rtc-ds1305.c
index dd6170acde95063b8253c837508cf429e5d6753a..80f323731ee2cdac987c963692d49be61841bbb1 100644 (file)
@@ -606,7 +606,7 @@ static int ds1305_probe(struct spi_device *spi)
        struct ds1305                   *ds1305;
        int                             status;
        u8                              addr, value;
-       struct ds1305_platform_data     *pdata = spi->dev.platform_data;
+       struct ds1305_platform_data     *pdata = dev_get_platdata(&spi->dev);
        bool                            write_ctrl = false;
 
        /* Sanity check board setup data.  This may be hooked up