diff options
Diffstat (limited to 'drivers/mfd/omap-usb-host.c')
-rw-r--r-- | drivers/mfd/omap-usb-host.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 68ac2c55d5ae..95a2e546a489 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c | |||
@@ -170,7 +170,7 @@ struct usbhs_hcd_omap { | |||
170 | /*-------------------------------------------------------------------------*/ | 170 | /*-------------------------------------------------------------------------*/ |
171 | 171 | ||
172 | const char usbhs_driver_name[] = USBHS_DRIVER_NAME; | 172 | const char usbhs_driver_name[] = USBHS_DRIVER_NAME; |
173 | static u64 usbhs_dmamask = ~(u32)0; | 173 | static u64 usbhs_dmamask = DMA_BIT_MASK(32); |
174 | 174 | ||
175 | /*-------------------------------------------------------------------------*/ | 175 | /*-------------------------------------------------------------------------*/ |
176 | 176 | ||
@@ -223,7 +223,7 @@ static struct platform_device *omap_usbhs_alloc_child(const char *name, | |||
223 | } | 223 | } |
224 | 224 | ||
225 | child->dev.dma_mask = &usbhs_dmamask; | 225 | child->dev.dma_mask = &usbhs_dmamask; |
226 | child->dev.coherent_dma_mask = 0xffffffff; | 226 | dma_set_coherent_mask(&child->dev, DMA_BIT_MASK(32)); |
227 | child->dev.parent = dev; | 227 | child->dev.parent = dev; |
228 | 228 | ||
229 | ret = platform_device_add(child); | 229 | ret = platform_device_add(child); |
@@ -799,14 +799,13 @@ static int __devinit usbhs_omap_probe(struct platform_device *pdev) | |||
799 | 799 | ||
800 | platform_set_drvdata(pdev, omap); | 800 | platform_set_drvdata(pdev, omap); |
801 | 801 | ||
802 | omap_usbhs_init(dev); | ||
802 | ret = omap_usbhs_alloc_children(pdev); | 803 | ret = omap_usbhs_alloc_children(pdev); |
803 | if (ret) { | 804 | if (ret) { |
804 | dev_err(dev, "omap_usbhs_alloc_children failed\n"); | 805 | dev_err(dev, "omap_usbhs_alloc_children failed\n"); |
805 | goto err_alloc; | 806 | goto err_alloc; |
806 | } | 807 | } |
807 | 808 | ||
808 | omap_usbhs_init(dev); | ||
809 | |||
810 | goto end_probe; | 809 | goto end_probe; |
811 | 810 | ||
812 | err_alloc: | 811 | err_alloc: |