summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hcd.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-05-08 13:30:12 -0500
committerFelipe Balbi <balbi@ti.com>2015-05-13 12:03:23 -0500
commit3521a399dae8d66fc784cef70a78e65ce73e364f (patch)
tree18cc09b97d2fe67d6a7db8056f8a8484258b6870 /drivers/usb/dwc2/hcd.c
parentffc1d299aa836f540a20302e9f22120639ea2944 (diff)
downloadtalos-obmc-linux-3521a399dae8d66fc784cef70a78e65ce73e364f.tar.gz
talos-obmc-linux-3521a399dae8d66fc784cef70a78e65ce73e364f.zip
usb: dwc2: hcd: fix build warning
commit db62b9a804b4 (usb: dwc2: host: don't use dma_alloc_coherent with irqs disabled) introduced a build warning by using NULL as an integer. Fix that by just using 0 instead of NULL. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd.c')
-rw-r--r--drivers/usb/dwc2/hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index d9b8cc36de52..b10377c65064 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -749,7 +749,7 @@ static int dwc2_hc_setup_align_buf(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
chan->ep_is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
if (dma_mapping_error(hsotg->dev, qh->dw_align_buf_dma)) {
dev_err(hsotg->dev, "can't map align_buf\n");
- chan->align_buf = (dma_addr_t)NULL;
+ chan->align_buf = 0;
return -EINVAL;
}
OpenPOWER on IntegriCloud