mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
e5b96a8273
commit
da1695ae5c
@@ -46,25 +46,7 @@ static int gv11b_tegra_get_clocks(struct device *dev)
|
||||
static int gv11b_tegra_probe(struct device *dev)
|
||||
{
|
||||
struct gk20a_platform *platform = dev_get_drvdata(dev);
|
||||
struct device_node *np = dev->of_node;
|
||||
struct device_node *host1x_node;
|
||||
struct platform_device *host1x_pdev;
|
||||
const __be32 *host1x_ptr;
|
||||
|
||||
host1x_ptr = of_get_property(np, "nvidia,host1x", NULL);
|
||||
if (!host1x_ptr) {
|
||||
gk20a_err(dev, "host1x device not available");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
host1x_node = of_find_node_by_phandle(be32_to_cpup(host1x_ptr));
|
||||
host1x_pdev = of_find_device_by_node(host1x_node);
|
||||
if (!host1x_pdev) {
|
||||
gk20a_err(dev, "host1x device not available");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
platform->g->host1x_dev = host1x_pdev;
|
||||
platform->bypass_smmu = !device_is_iommuable(dev);
|
||||
platform->disable_bigpage = platform->bypass_smmu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user