Skip to content

Commit

Permalink
spi/rtc-m41t93: Use spi_get_drvdata() for SPI devices
Browse files Browse the repository at this point in the history
One new offender detected by the recently increased type checking in
platform_get_drvdata():

drivers/rtc/rtc-m41t93.c: In function ‘m41t93_remove’:
drivers/rtc/rtc-m41t93.c:192: warning: passing argument 1 of ‘platform_get_drvdata’ from incompatible pointer type

Use spi_get_drvdata() instead of platform_get_drvdata(), cfr. commit
42fea15 ("spi/rtc-{ds1390,ds3234,m41t94}:
Use spi_get_drvdata() for SPI devices")

Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
geertu authored and glikely committed Jun 8, 2011
1 parent 8b20c8c commit a80fd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-m41t93.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static int __devinit m41t93_probe(struct spi_device *spi)

static int __devexit m41t93_remove(struct spi_device *spi)
{
struct rtc_device *rtc = platform_get_drvdata(spi);
struct rtc_device *rtc = spi_get_drvdata(spi);

if (rtc)
rtc_device_unregister(rtc);
Expand Down

0 comments on commit a80fd9d

Please sign in to comment.