summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h')
-rw-r--r--drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h
index 38379cf2..ff7d3a66 100644
--- a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h
+++ b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h
@@ -33,6 +33,9 @@ int vgpu_remove(struct platform_device *dev);
33 33
34void vgpu_create_sysfs(struct device *dev); 34void vgpu_create_sysfs(struct device *dev);
35void vgpu_remove_sysfs(struct device *dev); 35void vgpu_remove_sysfs(struct device *dev);
36
37int vgpu_tegra_suspend(struct device *dev);
38int vgpu_tegra_resume(struct device *dev);
36#else 39#else
37/* define placeholders for functions used outside of vgpu */ 40/* define placeholders for functions used outside of vgpu */
38 41
@@ -52,6 +55,14 @@ static inline int vgpu_remove(struct platform_device *dev)
52{ 55{
53 return -ENOSYS; 56 return -ENOSYS;
54} 57}
58static inline int vgpu_tegra_suspend(struct device *dev)
59{
60 return -ENOSYS;
61}
62static inline int vgpu_tegra_resume(struct device *dev)
63{
64 return -ENOSYS;
65}
55#endif 66#endif
56 67
57#endif 68#endif