|
@@ -114,8 +114,6 @@ static const struct hc_driver ohci_omap3_hc_driver = {
|
|
|
|
|
|
/*-------------------------------------------------------------------------*/
|
|
/*-------------------------------------------------------------------------*/
|
|
|
|
|
|
-static u64 omap_ohci_dma_mask = DMA_BIT_MASK(32);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* configure so an HC device and id are always provided
|
|
* configure so an HC device and id are always provided
|
|
* always called with process context; sleeping is OK
|
|
* always called with process context; sleeping is OK
|
|
@@ -168,8 +166,10 @@ static int ohci_hcd_omap3_probe(struct platform_device *pdev)
|
|
* Since shared usb code relies on it, set it here for now.
|
|
* Since shared usb code relies on it, set it here for now.
|
|
* Once we have dma capability bindings this can go away.
|
|
* Once we have dma capability bindings this can go away.
|
|
*/
|
|
*/
|
|
- if (!pdev->dev.dma_mask)
|
|
|
|
- pdev->dev.dma_mask = &omap_ohci_dma_mask;
|
|
|
|
|
|
+ if (!dev->dma_mask)
|
|
|
|
+ dev->dma_mask = &dev->coherent_dma_mask;
|
|
|
|
+ if (!dev->coherent_dma_mask)
|
|
|
|
+ dev->coherent_dma_mask = DMA_BIT_MASK(32);
|
|
|
|
|
|
hcd = usb_create_hcd(&ohci_omap3_hc_driver, dev,
|
|
hcd = usb_create_hcd(&ohci_omap3_hc_driver, dev,
|
|
dev_name(dev));
|
|
dev_name(dev));
|