diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-03-30 17:03:35 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | fce01666d57c9c76c21d4ac31adc225a2a6c2e42 (patch) | |
tree | ebddef3f3e9ed0c04535535c793c44132ea847e7 /drivers/gpu/nvgpu/gp10b/cde_gp10b.c | |
parent | bd688d31ce7df4a2d9134a521fa4c4f5eba06c2d (diff) |
gpu: nvgpu: Use device instead of platform_device
Use struct device instead of struct platform_device wherever
possible. This allows adding other bus types later.
Change-Id: I90623c020919ca8e2e5b31d53914c324d2dc6af9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1120464
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/cde_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/cde_gp10b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c index dadec4d2..4a16abd1 100644 --- a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B CDE | 2 | * GP10B CDE |
3 | * | 3 | * |
4 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -46,7 +46,7 @@ static void gp10b_cde_get_program_numbers(struct gk20a *g, | |||
46 | } | 46 | } |
47 | if (g->mm.bypass_smmu) { | 47 | if (g->mm.bypass_smmu) { |
48 | if (!g->mm.disable_bigpage) { | 48 | if (!g->mm.disable_bigpage) { |
49 | gk20a_warn(&g->dev->dev, | 49 | gk20a_warn(g->dev, |
50 | "when bypass_smmu is 1, disable_bigpage must be 1 too"); | 50 | "when bypass_smmu is 1, disable_bigpage must be 1 too"); |
51 | } | 51 | } |
52 | hprog |= 1; | 52 | hprog |= 1; |