spi/rtc-{ds1390,ds3234,m41t94}: Use spi_get_drvdata() for SPI devices
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 17 Mar 2011 13:47:56 +0000 (14:47 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 17 Mar 2011 16:32:47 +0000 (10:32 -0600)
commit42fea15d6dc410e62dac6a764142045280624a5b
tree195120f92cc8137952491116f89db1758c602517
parentb1178b21c6b9721a07fbd50762067a7c0ffa5a50
spi/rtc-{ds1390,ds3234,m41t94}: Use spi_get_drvdata() for SPI devices

The recently increased type checking in platform_get_drvdata() reveals a few
offenders:

drivers/rtc/rtc-ds1390.c:161: warning: passing argument 1 of ‘platform_get_drvdata’ from incompatible pointer type
drivers/rtc/rtc-ds3234.c:161: warning: passing argument 1 of ‘platform_get_drvdata’ from incompatible pointer type
drivers/rtc/rtc-m41t94.c:139: warning: passing argument 1 of ‘platform_get_drvdata’ from incompatible pointer type

Use spi_get_drvdata() instead of platform_get_drvdata().

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/rtc/rtc-ds1390.c
drivers/rtc/rtc-ds3234.c
drivers/rtc/rtc-m41t94.c