X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-max6902.c;h=0ec3f588a255dc1abe0cff5bc900cded2bdc8b59;hb=03a4491f5d6835028dbbcf36990599c5c9f6ff55;hp=657403ebd54a81fe7ddeda43d2c693234f148c81;hpb=5b8f0be0dce012d190a53d55240fe3fde6306476;p=deliverable%2Flinux.git diff --git a/drivers/rtc/rtc-max6902.c b/drivers/rtc/rtc-max6902.c index 657403ebd54a..0ec3f588a255 100644 --- a/drivers/rtc/rtc-max6902.c +++ b/drivers/rtc/rtc-max6902.c @@ -139,12 +139,13 @@ static int __devinit max6902_probe(struct spi_device *spi) if (IS_ERR(rtc)) return PTR_ERR(rtc); + dev_set_drvdata(&spi->dev, rtc); return 0; } static int __devexit max6902_remove(struct spi_device *spi) { - struct rtc_device *rtc = platform_get_drvdata(spi); + struct rtc_device *rtc = dev_get_drvdata(&spi->dev); rtc_device_unregister(rtc); return 0;