]> Pileus Git - ~andy/linux/commitdiff
dma: cpp41: make it compile with CONFIG_BUG=n
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 16 Aug 2013 15:40:55 +0000 (17:40 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:08:11 +0000 (14:08 -0500)
Before Randy figures out that this does not compile with CONFIG_BUG=n
here is a fix for it.

Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/dma/cppi41.c

index 5dcebca377601e0799833046140d3708c667cd8c..e69617889953ec2c05b844e3d5019f3fe8adf584 100644 (file)
@@ -579,7 +579,7 @@ static int cppi41_tear_down_chan(struct cppi41_channel *c)
                                WARN_ON(!c->is_tx && !(pd0 & TD_DESC_IS_RX));
                                WARN_ON((pd0 & 0x1f) != c->port_num);
                        } else {
-                               __WARN();
+                               WARN_ON_ONCE(1);
                        }
                        c->td_seen = 1;
                }