Skip to content

Commit

Permalink
mfd: Remove omap-usb-host magic numbers for dev dma mask
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Govindraj.R authored and Samuel Ortiz committed Mar 6, 2012
1 parent 231dd9c commit cbb8c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*-------------------------------------------------------------------------*/

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cbb8c22

Please sign in to comment.