diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-07-13 21:29:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-19 13:47:37 -0400 |
commit | da1695ae5c1319e19afe8e7890b51de67ec8c052 (patch) | |
tree | 3235e854dc3580ef5bb3a42ada4f897bd64fba62 /drivers/gpu/nvgpu/gv11b | |
parent | e5b96a827301a4ebdff45425722281de9d500d01 (diff) |
gpu: nvgpu: gv11b: avoid host1x device dependency
gpu is completely out from host1x block and
no need to create device nodes under host1x.
Bug 1735760
Change-Id: I2df861b07b38ce6931a86a928184ad164095948a
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1181063
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c index d9754a81..1f36e59c 100644 --- a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | |||
@@ -46,25 +46,7 @@ static int gv11b_tegra_get_clocks(struct device *dev) | |||
46 | static int gv11b_tegra_probe(struct device *dev) | 46 | static int gv11b_tegra_probe(struct device *dev) |
47 | { | 47 | { |
48 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 48 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
49 | struct device_node *np = dev->of_node; | 49 | |
50 | struct device_node *host1x_node; | ||
51 | struct platform_device *host1x_pdev; | ||
52 | const __be32 *host1x_ptr; | ||
53 | |||
54 | host1x_ptr = of_get_property(np, "nvidia,host1x", NULL); | ||
55 | if (!host1x_ptr) { | ||
56 | gk20a_err(dev, "host1x device not available"); | ||
57 | return -ENOSYS; | ||
58 | } | ||
59 | |||
60 | host1x_node = of_find_node_by_phandle(be32_to_cpup(host1x_ptr)); | ||
61 | host1x_pdev = of_find_device_by_node(host1x_node); | ||
62 | if (!host1x_pdev) { | ||
63 | gk20a_err(dev, "host1x device not available"); | ||
64 | return -ENOSYS; | ||
65 | } | ||
66 | |||
67 | platform->g->host1x_dev = host1x_pdev; | ||
68 | platform->bypass_smmu = !device_is_iommuable(dev); | 50 | platform->bypass_smmu = !device_is_iommuable(dev); |
69 | platform->disable_bigpage = platform->bypass_smmu; | 51 | platform->disable_bigpage = platform->bypass_smmu; |
70 | 52 | ||