xilinx_axidma: Do not set DMA .notify to NULL after notify
authorWendy Liang <jliang@xilinx.com>
Fri, 7 Jun 2013 03:05:38 +0000 (13:05 +1000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 10 Jun 2013 11:04:40 +0000 (13:04 +0200)
commit4f293bd6e53739e089f33b458f70a9c4ac136b92
treeb5c4aa0e4f49a06a470990ef49f4d98726ed17f1
parent4e298e46ddcbb3a2a653a582b54557b75180c625
xilinx_axidma: Do not set DMA .notify to NULL after notify

If a stream notify function is not ready, it may re-populate the notify call-
back to indicate it should be re-polled later. This break in this usage, as
immediately following the notify() call, .notify is set to NULL. reverse the
ordering of the notify call and NULL assignment accordingly.

[PC: Reworked commit message]

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/dma/xilinx_axidma.c