irda: via-ircc proper dma freeing
authorWang Chen <wangchen@cn.fujitsu.com>
Tue, 8 Jul 2008 10:06:46 +0000 (03:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2008 10:06:46 +0000 (03:06 -0700)
commit568b4933a9902aed0f51e2e1bea3da157fb18833
treee50e94dd9a9b25af5141bd85d30275362af4524a
parent3888e9efc9bf05e60504d2a420be7a527ff43678
irda: via-ircc proper dma freeing

1. dma should be freed when dma2 request fail.
2. dma2 should be freed too when device close.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/via-ircc.c