Patchwork [V1] drivers: rtc: Do not use mfd_get_data

login
register
mail settings
Submitter Anirudh Ghayal
Date June 9, 2011, 4:58 a.m.
Message ID <1307595515-19112-1-git-send-email-aghayal@codeaurora.org>
Download mbox | patch
Permalink /patch/99614/
State New
Headers show

Comments

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

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;