mfd: Remove omap-usb-host magic numbers for dev dma mask
authorGovindraj.R <govindraj.raja@ti.com>
Wed, 15 Feb 2012 06:57:50 +0000 (12:27 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:45 +0000 (18:46 +0100)
Remove the hardcoded magic values for dma mask and use the dma
mask api/macro available.

Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/omap-usb-host.c

index 68ac2c55d5ae0bb1381c0681b641846079345f54..680041189c418b01e00be7fa933966e4ac364014 100644 (file)
@@ -170,7 +170,7 @@ struct usbhs_hcd_omap {
 /*-------------------------------------------------------------------------*/
 
 const char usbhs_driver_name[] = USBHS_DRIVER_NAME;
-static u64 usbhs_dmamask = ~(u32)0;
+static u64 usbhs_dmamask = DMA_BIT_MASK(32);
 
 /*-------------------------------------------------------------------------*/
 
@@ -223,7 +223,7 @@ static struct platform_device *omap_usbhs_alloc_child(const char *name,
        }
 
        child->dev.dma_mask             = &usbhs_dmamask;
-       child->dev.coherent_dma_mask    = 0xffffffff;
+       dma_set_coherent_mask(&child->dev, DMA_BIT_MASK(32));
        child->dev.parent               = dev;
 
        ret = platform_device_add(child);