tegra: dma: add missing error return value
David Schalig [Wed, 11 Jan 2012 08:31:43 +0000 (17:31 +0900)]
- add missing error code
- remove duplicate define

Bug 919369
Bug 919338

Change-Id: I03012050f3b6c4b7bda69657fdd5cb533dcd937e
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/74521
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/75544
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

arch/arm/mach-tegra/dma.c
arch/arm/mach-tegra/include/mach/dma.h

index c36c31d..8776e9b 100644 (file)
@@ -290,7 +290,7 @@ int tegra_dma_dequeue_req(struct tegra_dma_channel *ch,
        }
        if (!found) {
                spin_unlock_irqrestore(&ch->lock, irq_flags);
-               return 0;
+               return -ENOENT;
        }
 
        if (!stop)
index 42084b6..4921387 100644 (file)
@@ -59,7 +59,6 @@ struct tegra_dma_channel;
 #define TEGRA_DMA_REQ_SEL_I2C3                 23
 #define TEGRA_DMA_REQ_SEL_DVC_I2C              24
 #define TEGRA_DMA_REQ_SEL_OWR                  25
-#define TEGRA_DMA_REQ_SEL_OWR                  25
 #define TEGRA_DMA_REQ_SEL_I2C4                 26
 #define TEGRA_DMA_REQ_SEL_SL2B5                        27
 #define TEGRA_DMA_REQ_SEL_SL2B6                        28