spi/rtc-{ds1390,ds3234,m41t94}: Use spi_get_drvdata() for SPI devices
[deliverable/linux.git] / drivers / rtc / rtc-ds1390.c
index 26a86d235051ff283115c34324ae2605a860a42f..b038d2cfef267163699fb502a4c3d2d533a58e75 100644 (file)
@@ -158,7 +158,7 @@ static int __devinit ds1390_probe(struct spi_device *spi)
 
 static int __devexit ds1390_remove(struct spi_device *spi)
 {
-       struct ds1390 *chip = platform_get_drvdata(spi);
+       struct ds1390 *chip = spi_get_drvdata(spi);
 
        rtc_device_unregister(chip->rtc);
        kfree(chip);
This page took 0.025394 seconds and 5 git commands to generate.