lkml.org 
[lkml]   [2010]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH resend] s3cmci: s3cmci_card_present: Use no_detect to decide whether there is a card detect pin
    Date
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    ---
    drivers/mmc/host/s3cmci.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
    index b9c96cc..2fdf768 100644
    --- a/drivers/mmc/host/s3cmci.c
    +++ b/drivers/mmc/host/s3cmci.c
    @@ -1179,7 +1179,7 @@ static int s3cmci_card_present(struct mmc_host *mmc)
    struct s3c24xx_mci_pdata *pdata = host->pdata;
    int ret;

    - if (pdata->gpio_detect == 0)
    + if (pdata->no_detect)
    return -ENOSYS;

    ret = gpio_get_value(pdata->gpio_detect) ? 0 : 1;
    --
    1.5.6.5


    \
     
     \ /
      Last update: 2010-02-26 02:21    [W:0.024 / U:91.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site