Re: [PATCH] rtc: rtc-ds1390/rtc-ds3234/rtc-m41t94: eliminate compile warning
From: Axel Lin
Date: Thu Mar 17 2011 - 01:50:09 EST
2011/3/17 Dennis Aberilla <denzzzhome@xxxxxxxxx>:
> Hi Axel, that doesn't seem to make sense to me since "platform_get_drvdata" is (from include/linux/platform_device.h):
> #define platform_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev)
These drivers are registered as spi drivers, not platform drivers.
How about using spi_get_drvdata instead.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/