diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-29 19:15:58 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-27 17:30:20 -0500 |
commit | 0e39ad429e8aa68cd11e464cd76a8b9d1912fb7d (patch) | |
tree | f0e0e5b082d59333aea7276375b1b1c15f05b0c4 /drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | |
parent | 26f22226bad5b31ec57938bad17cc1e1c1d60343 (diff) |
gpu: nvgpu: vgpu: move to nvgpu_err/info from dev_err/info
It helps code be more portable.
Jira EVLR-2364
Change-Id: I0cc1fa739d7884d3c863975f08b3b592acd34613
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649941
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c index 4d796f67..e293517f 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | |||
@@ -35,12 +35,12 @@ static int gv11b_vgpu_probe(struct device *dev) | |||
35 | 35 | ||
36 | r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "usermode"); | 36 | r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "usermode"); |
37 | if (!r) { | 37 | if (!r) { |
38 | dev_err(dev, "failed to get usermode regs\n"); | 38 | nvgpu_err(g, "failed to get usermode regs"); |
39 | return -ENXIO; | 39 | return -ENXIO; |
40 | } | 40 | } |
41 | regs = devm_ioremap_resource(dev, r); | 41 | regs = devm_ioremap_resource(dev, r); |
42 | if (IS_ERR(regs)) { | 42 | if (IS_ERR(regs)) { |
43 | dev_err(dev, "failed to map usermode regs\n"); | 43 | nvgpu_err(g, "failed to map usermode regs"); |
44 | return PTR_ERR(regs); | 44 | return PTR_ERR(regs); |
45 | } | 45 | } |
46 | l->usermode_regs = regs; | 46 | l->usermode_regs = regs; |
@@ -56,7 +56,7 @@ static int gv11b_vgpu_probe(struct device *dev) | |||
56 | &g->syncpt_unit_base, | 56 | &g->syncpt_unit_base, |
57 | &g->syncpt_unit_size); | 57 | &g->syncpt_unit_size); |
58 | if (ret) { | 58 | if (ret) { |
59 | dev_err(dev, "Failed to get syncpt interface"); | 59 | nvgpu_err(g, "Failed to get syncpt interface"); |
60 | return -ENOSYS; | 60 | return -ENOSYS; |
61 | } | 61 | } |
62 | g->syncpt_size = nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(1); | 62 | g->syncpt_size = nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(1); |