From patchwork Thu Jun 9 04:58:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V1] drivers: rtc: Do not use mfd_get_data From: Anirudh Ghayal X-Patchwork-Id: 99614 Message-Id: <1307595515-19112-1-git-send-email-aghayal@codeaurora.org> To: Andrew Morton , rtc-linux@googlegroups.com Cc: Bryan Huntsman , linux-arm-msm@vger.kernel.org, Ashay Jaiswal , Samuel Ortiz , Anirudh Ghayal Date: Thu, 9 Jun 2011 10:28:35 +0530 Signed-off-by: Anirudh Ghayal --- drivers/rtc/rtc-pm8xxx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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;