wan: wanxl: add pci_disable_device in case of error
authorSaurabh Sengar <saurabh.truth@gmail.com>
Fri, 11 Dec 2015 19:28:19 +0000 (00:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2015 21:21:58 +0000 (16:21 -0500)
commit7e074af2273a6e3115ff7c35529081ab52f8a9e9
tree40d0a596891c90ae3aef798f7341b382af3364cf
parent7772f773dc08899410ce89c47b923961c5cfbf25
wan: wanxl: add pci_disable_device in case of error

If there is 'no suitable DMA available' error, device should be disabled
before returning

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/wanxl.c