Message ID | 201009072230.o87MU1lp010207@imap1.linux-foundation.org (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff -puN drivers/mmc/card/mmc_test.c~mmc_test-use-api-to-check-card-type drivers/mmc/card/mmc_test.c --- a/drivers/mmc/card/mmc_test.c~mmc_test-use-api-to-check-card-type +++ a/drivers/mmc/card/mmc_test.c @@ -1977,7 +1977,7 @@ static int mmc_test_probe(struct mmc_car { int ret; - if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD)) + if (!mmc_card_mmc(card) && !mmc_card_sd(card)) return -ENODEV; ret = device_create_file(&card->dev, &dev_attr_test);