gpu: nvgpu: Move dev field from gk20a to nvgpu_os_linux

Move field "struct device *dev" from struct gk20a to struct
nvgpu_os_linux. The field is valid only for Linux.

JIRA NVGPU-38

Change-Id: I09286aa3a9c5a2406e5a27c1fbf21b2c515b4dd4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master/r/1514162
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-07-02 12:30:20 -07:00
committed by mobile promotions
parent dfd42c2b28
commit cba424539d
39 changed files with 44 additions and 14 deletions

View File

@@ -259,10 +259,6 @@ static inline struct gk20a *get_gk20a(struct device *dev)
{
return gk20a_get_platform(dev)->g;
}
static inline struct device *dev_from_gk20a(struct gk20a *g)
{
return g->dev;
}
static inline struct gk20a *gk20a_from_dev(struct device *dev)
{
if (!dev)