mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
c8c8c1bdbe
commit
63be54cefa
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue