Skip to content

Commit

Permalink
ARM: tegra: Don't WARN_ON() for too early dma channel allocations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson committed Feb 7, 2012
1 parent 07d4563 commit 13ae3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13ae3d5

Please sign in to comment.