diff options
Diffstat (limited to 'drivers/usb/host/ehci-orion.c')
-rw-r--r-- | drivers/usb/host/ehci-orion.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index d1dfb9db5b42..2ba76730e650 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c | |||
@@ -180,10 +180,9 @@ static int ehci_orion_drv_probe(struct platform_device *pdev) | |||
180 | * set. Since shared usb code relies on it, set it here for | 180 | * set. Since shared usb code relies on it, set it here for |
181 | * now. Once we have dma capability bindings this can go away. | 181 | * now. Once we have dma capability bindings this can go away. |
182 | */ | 182 | */ |
183 | if (!pdev->dev.dma_mask) | 183 | err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); |
184 | pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask; | 184 | if (err) |
185 | if (!pdev->dev.coherent_dma_mask) | 185 | goto err1; |
186 | pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); | ||
187 | 186 | ||
188 | if (!request_mem_region(res->start, resource_size(res), | 187 | if (!request_mem_region(res->start, resource_size(res), |
189 | ehci_orion_hc_driver.description)) { | 188 | ehci_orion_hc_driver.description)) { |