projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70abdbb
)
mmc: code clean up
author
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 12 Aug 2010 10:32:21 +0000
(19:32 +0900)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 12 Aug 2010 10:32:21 +0000
(19:32 +0900)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index
1b3fbfc
..
e976550
100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-427,6
+427,9
@@
int mmc_change_freq(struct mmc *mmc)
/* partition configuration */
err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL,
EXT_CSD_BOOT_CONFIG, mmc->boot_config);
+ if (err)
+ return err;
+
/*
* Boot bus width configuration
@@
-443,9
+446,6
@@
int mmc_change_freq(struct mmc *mmc)
return err;
}
- if (err)
- return err;
-
/* Now check to see that it worked */
err = mmc_send_ext_csd(mmc, ext_csd);