diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-27 14:14:43 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-31 14:49:16 +0000 |
commit | 20d897e45c7d84c31c89d37839ab4453d000a004 (patch) | |
tree | 983062b977d965a29bab4e6862e1002622184791 /net/rfkill/input.c | |
parent | 94cb0e7980e27b0a303074568de76080de06a693 (diff) | |
download | linux-20d897e45c7d84c31c89d37839ab4453d000a004.tar.bz2 |
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 <fengguang.wu@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'net/rfkill/input.c')
0 files changed, 0 insertions, 0 deletions