ARM: tegra: Don't WARN_ON() for too early dma channel allocations
Olof Johansson [Thu, 22 Dec 2011 14:17:40 +0000 (14:17 +0000)]
Since we'll do opportunistic allocations before the dma subsystem is
enabled we want just silent failures and retries instead.

Signed-off-by: Olof Johansson <olof@lixom.net>

arch/arm/mach-tegra/dma.c

index c0cf967..98b33c8 100644 (file)
@@ -357,7 +357,7 @@ struct tegra_dma_channel *tegra_dma_allocate_channel(int mode)
        int channel;
        struct tegra_dma_channel *ch = NULL;
 
-       if (WARN_ON(!tegra_dma_initialized))
+       if (!tegra_dma_initialized)
                return NULL;
 
        mutex_lock(&tegra_dma_lock);