From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anirudh Ghayal Subject: [PATCH V1] drivers: rtc: Do not use mfd_get_data Date: Thu, 9 Jun 2011 10:28:35 +0530 Message-ID: <1307595515-19112-1-git-send-email-aghayal@codeaurora.org> References: <1306472178-22315-1-git-send-email-aghayal@codeaurora.org> Return-path: Received: from wolverine01.qualcomm.com ([199.106.114.254]:50202 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819Ab1FIE6q (ORCPT ); Thu, 9 Jun 2011 00:58:46 -0400 In-Reply-To: <1306472178-22315-1-git-send-email-aghayal@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Andrew Morton , rtc-linux@googlegroups.com Cc: Bryan Huntsman , linux-arm-msm@vger.kernel.org, Ashay Jaiswal , Samuel Ortiz , Anirudh Ghayal 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; -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.