lkml.org 
[lkml]   [2010]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/3] mmc_test: use API to check card type
    Date
    Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
    ---
    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 7aaa4b2..359fae9 100644
    --- a/drivers/mmc/card/mmc_test.c
    +++ b/drivers/mmc/card/mmc_test.c
    @@ -1960,7 +1960,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);
    --
    1.6.3.3


    \
     
     \ /
      Last update: 2010-09-01 08:29    [W:0.032 / U:59.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site