From: Govindraj.R Date: Wed, 15 Feb 2012 06:57:50 +0000 (+0530) Subject: mfd: Remove omap-usb-host magic numbers for dev dma mask X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cbb8c220e70d25d1108db39d7956b08a66492fad;p=linux-beck.git mfd: Remove omap-usb-host magic numbers for dev dma mask Remove the hardcoded magic values for dma mask and use the dma mask api/macro available. Signed-off-by: Govindraj.R Reviewed-by: Felipe Balbi Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 68ac2c55d5ae..680041189c41 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -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);