From: Anirudh Ghayal <aghayal@codeaurora.org>
To: Andrew Morton <akpm@linux-foundation.org>, rtc-linux@googlegroups.com
Cc: Bryan Huntsman <bryanh@codeaurora.org>,
linux-arm-msm@vger.kernel.org,
Ashay Jaiswal <ashayj@codeaurora.org>,
Samuel Ortiz <sameo@linux.intel.com>,
Anirudh Ghayal <aghayal@codeaurora.org>
Subject: [PATCH V1] drivers: rtc: Do not use mfd_get_data
Date: Thu, 9 Jun 2011 10:28:35 +0530 [thread overview]
Message-ID: <1307595515-19112-1-git-send-email-aghayal@codeaurora.org> (raw)
In-Reply-To: <1306472178-22315-1-git-send-email-aghayal@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
---
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.
prev parent reply other threads:[~2011-06-09 4:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 4:56 [PATCH V4] drivers: rtc: Add support for Qualcomm PMIC8xxx RTC Anirudh Ghayal
2011-05-27 5:05 ` Anirudh Ghayal
2011-06-01 3:58 ` Anirudh Ghayal
2011-06-01 8:47 ` Samuel Ortiz
2011-06-01 8:52 ` Samuel Ortiz
2011-06-01 9:22 ` Wan ZongShun
2011-06-08 0:32 ` [rtc-linux] " Andrew Morton
2011-06-08 2:39 ` Bryan Huntsman
2011-06-08 9:11 ` Samuel Ortiz
2011-06-08 9:47 ` Anirudh Ghayal
2011-06-09 4:58 ` Anirudh Ghayal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307595515-19112-1-git-send-email-aghayal@codeaurora.org \
--to=aghayal@codeaurora.org \
--cc=akpm@linux-foundation.org \
--cc=ashayj@codeaurora.org \
--cc=bryanh@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).