aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/mmc.c10
-rw-r--r--drivers/mmc/core/sd.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index a6b5fe9d3969..ddddad46b402 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -179,11 +179,11 @@ static int mmc_read_ext_csd(struct mmc_card *card)
179 179
180 err = mmc_send_ext_csd(card, ext_csd); 180 err = mmc_send_ext_csd(card, ext_csd);
181 if (err) { 181 if (err) {
182 /* 182 /* If the host or the card can't do the switch,
183 * We all hosts that cannot perform the command 183 * fail more gracefully. */
184 * to fail more gracefully 184 if ((err != -EINVAL)
185 */ 185 && (err != -ENOSYS)
186 if (err != -EINVAL) 186 && (err != -EFAULT))
187 goto out; 187 goto out;
188 188
189 /* 189 /*
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 222a60928cdb..13b3a6b8f5b5 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -210,11 +210,11 @@ static int mmc_read_switch(struct mmc_card *card)
210 210
211 err = mmc_sd_switch(card, 0, 0, 1, status); 211 err = mmc_sd_switch(card, 0, 0, 1, status);
212 if (err) { 212 if (err) {
213 /* 213 /* If the host or the card can't do the switch,
214 * We all hosts that cannot perform the command 214 * fail more gracefully. */
215 * to fail more gracefully 215 if ((err != -EINVAL)
216 */ 216 && (err != -ENOSYS)
217 if (err != -EINVAL) 217 && (err != -EFAULT))
218 goto out; 218 goto out;
219 219
220 printk(KERN_WARNING "%s: problem reading switch " 220 printk(KERN_WARNING "%s: problem reading switch "