diff options
author | Fancy Fang <chen.fang@freescale.com> | 2014-08-29 15:21:54 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-04-14 13:59:33 -0500 |
commit | b394db83c21a509401e21a6e32cc2ca9e37b16b0 (patch) | |
tree | 4647aa96e04bf372bead9e3e96abb9c178a68a8d /drivers/dma | |
parent | f10a46507b122eb32bf77f781c95f7e3f1db86f4 (diff) |
ENGR00329330 ARM: IMX6SX: PXP: thread wait queue should be init before thread creation
Since the thread function will use the thread wait queue
as soon as the thread is created.
Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit 325544504ea2bd73749ef65064be0b4ab885b987)
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pxp/pxp_dma_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v2.c b/drivers/dma/pxp/pxp_dma_v2.c index d5b2d8f141f6..72badd1485e3 100644 --- a/drivers/dma/pxp/pxp_dma_v2.c +++ b/drivers/dma/pxp/pxp_dma_v2.c @@ -1722,13 +1722,13 @@ static int pxp_probe(struct platform_device *pdev) pxp->clk_timer.function = pxp_clkoff_timer; pxp->clk_timer.data = (unsigned long)pxp; + init_waitqueue_head(&pxp->thread_waitq); /* allocate a kernel thread to dispatch pxp conf */ pxp->dispatch = kthread_run(pxp_dispatch_thread, pxp, "pxp_dispatch"); if (IS_ERR(pxp->dispatch)) { err = PTR_ERR(pxp->dispatch); goto exit; } - init_waitqueue_head(&pxp->thread_waitq); tx_desc_cache = kmem_cache_create("tx_desc", sizeof(struct pxp_tx_desc), 0, SLAB_HWCACHE_ALIGN, NULL); if (!tx_desc_cache) { |