From 63be54cefa3ae58e1e82036945e3c27f941f5a0d Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Wed, 1 Sep 2010 09:26:45 +0300 Subject: [PATCH] mmc_test: use API to check card type There are methods to check card type. Let's use them instead of direct checking type bits. Signed-off-by: Andy Shevchenko Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball --- drivers/mmc/card/mmc_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 7a38ae9..e27806d 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -2064,7 +2064,7 @@ static int mmc_test_probe(struct mmc_card *card) { 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); -- 2.7.4