summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-01-24 13:04:14 -0800
committerRohit Vaswani <rvaswani@codeaurora.org>2016-03-01 12:22:10 -0800
commita360a2d337e3fec89ca5e1ac2f0b3a79a10534de (patch)
tree72083e07f1748fa84a6a5f9cd1e7f3fbde4c16f6 /drivers/regulator
parent1267164e16857ab7f28aef12224456d5fdbfe48e (diff)
arm64: Add pdev_archdata for dmamask
The dma_mask for a device structure is a pointer. This pointer needs to be set up before the dma mask can actually be set. Most frameworks in the kernel take care of setting this up properly but platform devices that don't follow a regular bus structure may not ever have this set. As a result, checks such as dma_capable will always return false on a raw platform device and dma_set_mask will always return -EIO. Fix this by adding a dma_mask in the platform_device archdata and setting it to be the dma_mask. Devices used in other frameworks can change this as needed. Change-Id: I5bfd2aa75798dfdf49d3af70fdd95dfaf2126e8c Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [abhimany: resolve trivial merge conflicts] Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions