summaryrefslogtreecommitdiff
path: root/arch/arm/plat-pxa/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-pxa/dma.c')
-rw-r--r--arch/arm/plat-pxa/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-pxa/dma.c b/arch/arm/plat-pxa/dma.c
index 742350e0f2a7..2d3c19d7c7b1 100644
--- a/arch/arm/plat-pxa/dma.c
+++ b/arch/arm/plat-pxa/dma.c
@@ -245,7 +245,7 @@ static void pxa_dma_init_debugfs(void)
dbgfs_chan = kmalloc(sizeof(*dbgfs_state) * num_dma_channels,
GFP_KERNEL);
- if (!dbgfs_state)
+ if (!dbgfs_chan)
goto err_alloc;
chandir = debugfs_create_dir("channels", dbgfs_root);