aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-10-12 18:09:27 +0100
committerMark Brown <broonie@kernel.org>2015-10-12 18:09:27 +0100
commit79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch)
tree5e0fa7156acb75ba603022bc807df8f2fedb97a8 /lib/dma-debug.c
parentASoC: rt5645: Add struct dmi_system_id "Google Ultima" for chrome platform (diff)
parentASoC: rt5645: Correct the naming and setting of ADC Boost Volume Control (diff)
downloadwireguard-linux-79828b4fa835f73cdaf4bffa48696abdcbea9d02.tar.xz
wireguard-linux-79828b4fa835f73cdaf4bffa48696abdcbea9d02.zip
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'lib/dma-debug.c')
-rw-r--r--lib/dma-debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c
index ae4b65e17e64..dace71fe41f7 100644
--- a/lib/dma-debug.c
+++ b/lib/dma-debug.c
@@ -574,6 +574,9 @@ void debug_dma_assert_idle(struct page *page)
unsigned long flags;
phys_addr_t cln;
+ if (dma_debug_disabled())
+ return;
+
if (!page)
return;