X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fstaging%2Fdwc2%2Fplatform.c;fp=drivers%2Fstaging%2Fdwc2%2Fplatform.c;h=83ca1053bb1d2c04be6eeef97103ae1bf6bfd58f;hb=8ceafbfa91ffbdbb2afaea5c24ccb519ffb8b587;hp=76ae6e210f55ea2709d8a3a46a1d01e231461e38;hpb=42a2d923cc349583ebf6fdd52a7d35e1c2f7e6bd;p=cascardo%2Flinux.git diff --git a/drivers/staging/dwc2/platform.c b/drivers/staging/dwc2/platform.c index 76ae6e210f55..83ca1053bb1d 100644 --- a/drivers/staging/dwc2/platform.c +++ b/drivers/staging/dwc2/platform.c @@ -100,8 +100,9 @@ static int dwc2_driver_probe(struct platform_device *dev) */ if (!dev->dev.dma_mask) dev->dev.dma_mask = &dev->dev.coherent_dma_mask; - if (!dev->dev.coherent_dma_mask) - dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); + retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32)); + if (retval) + return retval; irq = platform_get_irq(dev, 0); if (irq < 0) {