From: Russell King Date: Thu, 27 Jun 2013 13:14:43 +0000 (+0100) Subject: DMA-API: dcdbas: update DMA mask handing X-Git-Tag: v3.13-rc1~104^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20d897e45c7d84c31c89d37839ab4453d000a004;p=pandora-kernel.git DMA-API: dcdbas: update DMA mask handing dcdbas was explicitly initializing DMA masks thusly: dcdbas_pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); dcdbas_pdev->dev.dma_mask = &dcdbas_pdev->dev.coherent_dma_mask; which bypasses the architecture check. Moreover, it is creating the dcdbas_pdev device itself, and using the platform_device_register_full() avoids some of this explicit initialization. Convert the driver to use platform_device_register_full(), and as it makes use of coherent DMA, also call dma_set_coherent_mask() to ensure that the architecture gets to check the mask. Tested-by: Fengguang Wu Signed-off-by: Russell King --- Reading git-diff-tree failed