diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2010-09-01 02:26:45 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 09:11:12 -0400 |
commit | 63be54cefa3ae58e1e82036945e3c27f941f5a0d (patch) | |
tree | 7f4543f4f96ed506f510bcd2d2aa1e79c2a53dbd /drivers/mmc | |
parent | c8c8c1bdbe585d9159c4585216451faa4c35e4ec (diff) |
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/card/mmc_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 7a38ae9754f6..e27806d6458c 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) | |||
2064 | { | 2064 | { |
2065 | int ret; | 2065 | int ret; |
2066 | 2066 | ||
2067 | if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD)) | 2067 | if (!mmc_card_mmc(card) && !mmc_card_sd(card)) |
2068 | return -ENODEV; | 2068 | return -ENODEV; |
2069 | 2069 | ||
2070 | ret = device_create_file(&card->dev, &dev_attr_test); | 2070 | ret = device_create_file(&card->dev, &dev_attr_test); |