aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-pxa27x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-pxa27x.c')
-rw-r--r--drivers/usb/host/ohci-pxa27x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c
index deea5d1d6394..e89ac4d4b87e 100644
--- a/drivers/usb/host/ohci-pxa27x.c
+++ b/drivers/usb/host/ohci-pxa27x.c
@@ -298,6 +298,7 @@ static int ohci_pxa_of_init(struct platform_device *pdev)
298 struct device_node *np = pdev->dev.of_node; 298 struct device_node *np = pdev->dev.of_node;
299 struct pxaohci_platform_data *pdata; 299 struct pxaohci_platform_data *pdata;
300 u32 tmp; 300 u32 tmp;
301 int ret;
301 302
302 if (!np) 303 if (!np)
303 return 0; 304 return 0;
@@ -306,10 +307,9 @@ static int ohci_pxa_of_init(struct platform_device *pdev)
306 * Since shared usb code relies on it, set it here for now. 307 * Since shared usb code relies on it, set it here for now.
307 * Once we have dma capability bindings this can go away. 308 * Once we have dma capability bindings this can go away.
308 */ 309 */
309 if (!pdev->dev.dma_mask) 310 ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
310 pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask; 311 if (ret)
311 if (!pdev->dev.coherent_dma_mask) 312 return ret;
312 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
313 313
314 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); 314 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
315 if (!pdata) 315 if (!pdata)