fotg210-udc: pass struct device to DMA API functions
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Feb 2019 08:47:56 +0000 (09:47 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Feb 2019 13:30:14 +0000 (15:30 +0200)
commite26bdb013150b055f9a5a8c1e6026528ee383ba4
treec82bde56e3b67a7f3960de83b51eeb9922988252
parent8c7ffa5ebd4e56ac0a7dcc70fa6da94171d8985d
fotg210-udc: pass struct device to DMA API functions

The DMA API generally relies on a struct device to work properly, and
only barely works without one for legacy reasons.  Pass the easily
available struct device from the platform_device to remedy this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fotg210-udc.c