]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: gadget: amd5536udc: use free_dma_pools
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 22 Sep 2015 13:24:29 +0000 (18:54 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:20 +0000 (12:40 -0500)
commitf349dd3c76039a2b0bf03a11484dd2850868b7e3
tree625300c218ab09b0802fe7e847819b3b935781b7
parent2e1b7d0c691c63c66d5bf5c097243f3b037adf32
usb: gadget: amd5536udc: use free_dma_pools

We have the function free_dma_pools() which frees all the dma pools. Use
it instead of calling all the functions separately. The if conditions
for data_requests and stp_requests are also not required here as this is
the remove function and we are here means probe has succeeded and dma
has been successfully allocated, so they cannot be NULL here.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/amd5536udc.c