[V1] drivers: rtc: Do not use mfd_get_data

Submitted by Anirudh Ghayal on June 9, 2011, 4:58 a.m.

Details

Message ID 1307595515-19112-1-git-send-email-aghayal@codeaurora.org
State Rejected
Headers show

Commit Message

Anirudh Ghayal June 9, 2011, 4:58 a.m.
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
---
 drivers/rtc/rtc-pm8xxx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c
index 8cbad75..e19e71c 100644
--- a/drivers/rtc/rtc-pm8xxx.c
+++ b/drivers/rtc/rtc-pm8xxx.c
@@ -399,7 +399,8 @@  static int __devinit pm8xxx_rtc_probe(struct platform_device *pdev)
 	bool rtc_write_enable = false;
 	struct pm8xxx_rtc *rtc_dd;
 	struct resource *rtc_resource;
-	const struct pm8xxx_rtc_platform_data *pdata = mfd_get_data(pdev);
+	const struct pm8xxx_rtc_platform_data *pdata =
+						dev_get_platdata(&pdev->dev);
 
 	if (pdata != NULL)
 		rtc_write_enable = pdata->rtc_write_enable;