lkml.org 
[lkml]   [2008]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch v2 12/16] MMC: S3C24XX: Fix MMC return codes.
    Fix the error codes

    Signed-off-by: Ben Dooks <ben-linux@fluff.org>

    Index: linux-2.6.26-rc5-q2/drivers/mmc/host/s3cmci.c
    ===================================================================
    --- linux-2.6.26-rc5-q2.orig/drivers/mmc/host/s3cmci.c 2008-06-08 14:02:32.000000000 +0100
    +++ linux-2.6.26-rc5-q2/drivers/mmc/host/s3cmci.c 2008-06-08 14:02:34.000000000 +0100
    @@ -11,6 +11,7 @@
    #include <linux/module.h>
    #include <linux/dma-mapping.h>
    #include <linux/clk.h>
    +#include <linux/mmc/core.h>
    #include <linux/mmc/mmc.h>
    #include <linux/mmc/host.h>
    #include <linux/platform_device.h>
    @@ -27,6 +28,12 @@

    #define DRIVER_NAME "s3c-mci"

    +#define MMC_ERR_NONE (0)
    +#define MMC_ERR_DMA EINVAL
    +#define MMC_ERR_TIMEOUT ETIMEDOUT
    +#define MMC_ERR_BADCRC EILSEQ
    +#define MMC_ERR_FIFO EILSEQ
    +
    enum dbg_channels {
    dbg_err = (1 << 0),
    dbg_debug = (1 << 1),
    --
    Ben (ben@fluff.org, http://www.fluff.org/)

    'a smiley only costs 4 bytes'


    \
     
     \ /
      Last update: 2008-06-16 16:55    [W:0.018 / U:2.212 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site