staging: dwc2: Don't touch the dma_mask when dma is disabled
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 24 Jul 2013 11:29:22 +0000 (13:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 20:38:09 +0000 (13:38 -0700)
commitf4616af01813cbf6a2c2aabcedb11c721d5e7680
tree5ede6333b29f666e41cf30695d71441f9862baf1
parentaaba4b58820aebebdee3e3191ef71c11b569c629
staging: dwc2: Don't touch the dma_mask when dma is disabled

There was some code that cleared the dma_mask when dma was disabled in
the driver. Given that clearing the mask doesn't actually tell the usb
core we're not using dma, and a previous commit explicitely sets the
hcd->self.uses_dma value, it seems these values are unneeded and can
only potentially cause problems (when reloading a module, for example).

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c