From: Daniel Walker <dwalker@codeaurora.org>
To: davidb@quicinc.com
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
linux-arm-msm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Daniel Walker <dwalker@codeaurora.org>
Subject: [PATCH] drivers: mmc: msm: update to new arm pfn_to_dma API
Date: Tue, 18 Jan 2011 10:04:04 -0800 [thread overview]
Message-ID: <1295373844-27713-1-git-send-email-dwalker@codeaurora.org> (raw)
The page_to_dma() API call was removed. It caused this build
failure,
linux-2.6/drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_config_dma':
linux-2.6/drivers/mmc/host/msm_sdcc.c:391: error: implicit declaration of function 'page_to_dma'
This updates to the new usage which is pfn_to_dma().
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
---
drivers/mmc/host/msm_sdcc.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index a5c7049..a46b9a8 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -388,8 +388,9 @@ static int msmsdcc_config_dma(struct msmsdcc_host *host, struct mmc_data *data)
box->cmd = CMD_MODE_BOX;
/* Initialize sg dma address */
- sg->dma_address = page_to_dma(mmc_dev(host->mmc), sg_page(sg))
- + sg->offset;
+ sg->dma_address = pfn_to_dma(mmc_dev(host->mmc),
+ page_to_pfn(sg_page(sg)))
+ + sg->offset;
if (i == (host->dma.num_ents - 1))
box->cmd |= CMD_LC;
--
1.7.0.4
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next reply other threads:[~2011-01-18 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 18:04 Daniel Walker [this message]
2011-01-18 18:28 ` [PATCH] drivers: mmc: msm: update to new arm pfn_to_dma API Russell King - ARM Linux
2011-01-18 20:22 ` Daniel Walker
2011-01-18 20:44 ` Russell King - ARM Linux
2011-01-18 21:00 ` Daniel Walker
2011-01-18 21:16 ` Russell King - ARM Linux
2011-01-18 21:28 ` Daniel Walker
2011-01-18 22:41 ` Russell King - ARM Linux
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=1295373844-27713-1-git-send-email-dwalker@codeaurora.org \
--to=dwalker@codeaurora.org \
--cc=davidb@quicinc.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
/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).