projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09591dd
)
mmc: bfin_sdh: fix unused sg warning on BF51x/BF52x systems
author
Mike Frysinger
<
[email protected]
>
Fri, 5 Mar 2010 21:43:23 +0000
(13:43 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 19:26:36 +0000
(11:26 -0800)
The local sg variable is only used with BF54x code.
Signed-off-by: Mike Frysinger <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/mmc/host/bfin_sdh.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/bfin_sdh.c
b/drivers/mmc/host/bfin_sdh.c
index 3343a57355cc4a3a6e18e12f03f31badb6129913..f218a99645524216ce9ccbffac575578e7f28725 100644
(file)
--- a/
drivers/mmc/host/bfin_sdh.c
+++ b/
drivers/mmc/host/bfin_sdh.c
@@
-115,7
+115,6
@@
static int sdh_setup_data(struct sdh_host *host, struct mmc_data *data)
unsigned int length;
unsigned int data_ctl;
unsigned int dma_cfg;
- struct scatterlist *sg;
dev_dbg(mmc_dev(host->mmc), "%s enter flags: 0x%x\n", __func__, data->flags);
host->data = data;
@@
-151,6
+150,7
@@
static int sdh_setup_data(struct sdh_host *host, struct mmc_data *data)
#if defined(CONFIG_BF54x)
dma_cfg |= DMAFLOW_ARRAY | NDSIZE_5 | RESTART | WDSIZE_32 | DMAEN;
{
+ struct scatterlist *sg;
int i;
for_each_sg(data->sg, sg, host->dma_len, i) {
host->sg_cpu[i].start_addr = sg_dma_address(sg);