summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
index 6351e895..6d9299b7 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
@@ -84,7 +84,7 @@ int gp10b_tegra_get_clocks(struct device *dev)
84 84
85 c = clk_get(dev, tegra_gp10b_clocks[i].name); 85 c = clk_get(dev, tegra_gp10b_clocks[i].name);
86 if (IS_ERR(c)) { 86 if (IS_ERR(c)) {
87 gk20a_err(dev, "cannot get clock %s", 87 nvgpu_err(platform->g, "cannot get clock %s",
88 tegra_gp10b_clocks[i].name); 88 tegra_gp10b_clocks[i].name);
89 } else { 89 } else {
90 clk_set_rate(c, rate); 90 clk_set_rate(c, rate);
@@ -125,6 +125,7 @@ static void gp10b_tegra_scale_exit(struct device *dev)
125static int gp10b_tegra_probe(struct device *dev) 125static int gp10b_tegra_probe(struct device *dev)
126{ 126{
127 struct gk20a_platform *platform = dev_get_drvdata(dev); 127 struct gk20a_platform *platform = dev_get_drvdata(dev);
128 struct gk20a *g = platform->g;
128 struct device_node *np = dev->of_node; 129 struct device_node *np = dev->of_node;
129 struct device_node *host1x_node; 130 struct device_node *host1x_node;
130 struct platform_device *host1x_pdev; 131 struct platform_device *host1x_pdev;
@@ -132,14 +133,14 @@ static int gp10b_tegra_probe(struct device *dev)
132 133
133 host1x_ptr = of_get_property(np, "nvidia,host1x", NULL); 134 host1x_ptr = of_get_property(np, "nvidia,host1x", NULL);
134 if (!host1x_ptr) { 135 if (!host1x_ptr) {
135 gk20a_err(dev, "host1x device not available"); 136 nvgpu_err(g, "host1x device not available");
136 return -ENOSYS; 137 return -ENOSYS;
137 } 138 }
138 139
139 host1x_node = of_find_node_by_phandle(be32_to_cpup(host1x_ptr)); 140 host1x_node = of_find_node_by_phandle(be32_to_cpup(host1x_ptr));
140 host1x_pdev = of_find_device_by_node(host1x_node); 141 host1x_pdev = of_find_device_by_node(host1x_node);
141 if (!host1x_pdev) { 142 if (!host1x_pdev) {
142 gk20a_err(dev, "host1x device not available"); 143 nvgpu_err(g, "host1x device not available");
143 return -ENOSYS; 144 return -ENOSYS;
144 } 145 }
145 146