diff options
| author | Sri Krishna chowdary <schowdary@nvidia.com> | 2015-05-19 12:12:37 -0400 |
|---|---|---|
| committer | Sri Krishna Chowdary <schowdary@nvidia.com> | 2015-06-27 00:37:18 -0400 |
| commit | fd75c4bf81953c3e8548676ea0b4e400cda9af74 (patch) | |
| tree | 2bb4e82246d579294893d0d50ab8a44c3fa5376c /include/linux/nvmap.h | |
| parent | 5e5d3b63333350d58c91a280a99befc984cafd9e (diff) | |
video: tegra: nvmap: always initilize carveout's dma_dev
If carveout's dma_dev is not initialized at compile time,
initialize it at runtime with the device present within.
This is needed to simplify the logic for reserved-memory handling.
Remove the redundant device from nvmap_heap.
Bug 200027296
Change-Id: Ib44fbc10f12370c012295f3954c29ee8ef627d3f
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/744431
(cherry picked from commit aacf26f32307c5864ba19ee4106442aaaa8741d3)
Reviewed-on: http://git-master/r/761565
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
| -rw-r--r-- | include/linux/nvmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index ef0f7fd7a..0c2d02562 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h | |||
| @@ -80,6 +80,7 @@ struct nvmap_platform_carveout { | |||
| 80 | struct device *cma_dev; | 80 | struct device *cma_dev; |
| 81 | bool resize; | 81 | bool resize; |
| 82 | struct device *dma_dev; | 82 | struct device *dma_dev; |
| 83 | struct device dev; | ||
| 83 | bool is_ivm; | 84 | bool is_ivm; |
| 84 | int peer; | 85 | int peer; |
| 85 | int vmid; | 86 | int vmid; |
