usb: dwc2: fix default value for DMA support
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 20 Nov 2016 21:26:04 +0000 (21:26 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commit6118d0647b10eaca06b278dee2022602d8f2f07a
tree051e361a4a5be5443e14125e762912e71b169333
parentde02238d6a7982a71682fe8da2996993a5a5eee7
usb: dwc2: fix default value for DMA support

The current defaults for DMA results on a non-DMA platform in a unnecessary
error message:

  Invalid value 0 for param gadget-dma

So fix this by using dma_capable as default value.

Fixes: 9962b62f1be ("usb: dwc2: Deprecate g-use-dma binding")
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c