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 <ext-andriy.shevchenko@nokia.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
Andy Shevchenko 2010-09-01 09:26:45 +03:00 committed by Chris Ball
parent c8c8c1bdbe
commit 63be54cefa

View File

@ -2064,7 +2064,7 @@ static int mmc_test_probe(struct mmc_card *card)
{ {
int ret; int ret;
if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD)) if (!mmc_card_mmc(card) && !mmc_card_sd(card))
return -ENODEV; return -ENODEV;
ret = device_create_file(&card->dev, &dev_attr_test); ret = device_create_file(&card->dev, &dev_attr_test);