]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iommu: qcom: v1: move iommu-sec pgtable allocation
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 12 Jan 2016 13:07:55 +0000 (15:07 +0200)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 14 Jan 2016 10:29:22 +0000 (10:29 +0000)
commit4682a1db8e4083db271a21b2e71dd7c26e54e310
tree46bceb3274cd5fc666799dac00d41cf6969f778c
parenta189f35a7b318d4b8091e3d7f6f6da18bd449417
iommu: qcom: v1: move iommu-sec pgtable allocation

move the allocation of iommu-sec page table into msm_iommu_dev
in order to use properly initialised struct device.
The dma_alloc_attrs would fail to allocate memory with the fake
struct device which was the case before this change.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
drivers/iommu/qcom/msm_iommu_dev-v1.c
drivers/iommu/qcom/msm_iommu_sec.c