summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index 3221e423..c4a5179a 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -34,6 +34,7 @@
34#include "ltc_gp10b.h" 34#include "ltc_gp10b.h"
35#include "hw_gr_gp10b.h" 35#include "hw_gr_gp10b.h"
36#include "hw_ltc_gp10b.h" 36#include "hw_ltc_gp10b.h"
37#include "gp10b_sysfs.h"
37 38
38#define GP10B_MAX_SUPPORTED_FREQS 11 39#define GP10B_MAX_SUPPORTED_FREQS 11
39static unsigned long gp10b_freq_table[GP10B_MAX_SUPPORTED_FREQS]; 40static unsigned long gp10b_freq_table[GP10B_MAX_SUPPORTED_FREQS];
@@ -142,7 +143,8 @@ static int gp10b_tegra_late_probe(struct platform_device *pdev)
142{ 143{
143 /* Make gk20a power domain a subdomain of host1x */ 144 /* Make gk20a power domain a subdomain of host1x */
144 nvhost_register_client_domain(dev_to_genpd(&pdev->dev)); 145 nvhost_register_client_domain(dev_to_genpd(&pdev->dev));
145 146 /*Create GP10B specific sysfs*/
147 gp10b_create_sysfs(pdev);
146 return 0; 148 return 0;
147} 149}
148 150
@@ -150,9 +152,9 @@ static int gp10b_tegra_remove(struct platform_device *pdev)
150{ 152{
151 /* remove gk20a power subdomain from host1x */ 153 /* remove gk20a power subdomain from host1x */
152 nvhost_unregister_client_domain(dev_to_genpd(&pdev->dev)); 154 nvhost_unregister_client_domain(dev_to_genpd(&pdev->dev));
153
154 gr_gp10b_remove_sysfs(&pdev->dev); 155 gr_gp10b_remove_sysfs(&pdev->dev);
155 156 /*Remove GP10B specific sysfs*/
157 gp10b_remove_sysfs(&pdev->dev);
156 return 0; 158 return 0;
157 159
158} 160}