aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-21 15:27:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-21 15:27:09 -0700
commit1808caffaf448f0ad42ba04b25825fc170cf8e44 (patch)
tree4b0ecfabefb62c3b8cfcfb7a72041c34e1f7add7 /drivers
parent3d15e4a32dfa3da45751356e5f47aa04b97370e0 (diff)
parent912490db699d83cb3d03570b63df7448677a3f56 (diff)
Merge of master.kernel.org:/home/rmk/linux-2.6-mmc.git
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc_block.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c
index b5b4a7b1190..d4eee99c2bf 100644
--- a/drivers/mmc/mmc_block.c
+++ b/drivers/mmc/mmc_block.c
@@ -383,7 +383,10 @@ static int mmc_blk_probe(struct mmc_card *card)
struct mmc_blk_data *md;
int err;
- if (card->csd.cmdclass & ~0x1ff)
+ /*
+ * Check that the card supports the command class(es) we need.
+ */
+ if (!(card->csd.cmdclass & CCC_BLOCK_READ))
return -ENODEV;
if (card->csd.read_blkbits < 9) {