mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Remove clk.h dependency from gk20a.h
gk20a.h depends on definition of struct clk_pmupstate. Change that to a pointer and use forward declaration, and allocation and free functions. Fix a few build breaks by adding explicit includes where previously a header file had gotten included implicitly. JIRA NVGPU-596 Change-Id: Iafe7d72a6fd31543653e0e10e2d2e552b6c3514b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1945286 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
bca27e31e3
commit
07760eb9a1
@@ -188,7 +188,7 @@ int clk_vin_sw_setup(struct gk20a *g)
|
||||
|
||||
nvgpu_log_info(g, " ");
|
||||
|
||||
status = boardobjgrpconstruct_e32(g, &g->clk_pmu.avfs_vinobjs.super);
|
||||
status = boardobjgrpconstruct_e32(g, &g->clk_pmu->avfs_vinobjs.super);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
"error creating boardobjgrp for clk vin, statu - 0x%x",
|
||||
@@ -196,8 +196,8 @@ int clk_vin_sw_setup(struct gk20a *g)
|
||||
goto done;
|
||||
}
|
||||
|
||||
pboardobjgrp = &g->clk_pmu.avfs_vinobjs.super.super;
|
||||
pvinobjs = &g->clk_pmu.avfs_vinobjs;
|
||||
pboardobjgrp = &g->clk_pmu->avfs_vinobjs.super.super;
|
||||
pvinobjs = &g->clk_pmu->avfs_vinobjs;
|
||||
|
||||
BOARDOBJGRP_PMU_CONSTRUCT(pboardobjgrp, CLK, VIN_DEVICE);
|
||||
|
||||
@@ -214,7 +214,7 @@ int clk_vin_sw_setup(struct gk20a *g)
|
||||
pboardobjgrp->pmudatainstget = _clk_vin_devgrp_pmudata_instget;
|
||||
pboardobjgrp->pmustatusinstget = _clk_vin_devgrp_pmustatus_instget;
|
||||
|
||||
status = devinit_get_vin_device_table(g, &g->clk_pmu.avfs_vinobjs);
|
||||
status = devinit_get_vin_device_table(g, &g->clk_pmu->avfs_vinobjs);
|
||||
if (status != 0) {
|
||||
goto done;
|
||||
}
|
||||
@@ -223,7 +223,7 @@ int clk_vin_sw_setup(struct gk20a *g)
|
||||
g->ops.pmu_ver.clk.clk_avfs_get_vin_cal_data(g, pvinobjs, pvindev);
|
||||
|
||||
status = BOARDOBJGRP_PMU_CMD_GRP_GET_STATUS_CONSTRUCT(g,
|
||||
&g->clk_pmu.avfs_vinobjs.super.super,
|
||||
&g->clk_pmu->avfs_vinobjs.super.super,
|
||||
clk, CLK, clk_vin_device, CLK_VIN_DEVICE);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
@@ -244,7 +244,7 @@ int clk_vin_pmu_setup(struct gk20a *g)
|
||||
|
||||
nvgpu_log_info(g, " ");
|
||||
|
||||
pboardobjgrp = &g->clk_pmu.avfs_vinobjs.super.super;
|
||||
pboardobjgrp = &g->clk_pmu->avfs_vinobjs.super.super;
|
||||
|
||||
if (!pboardobjgrp->bconstructed) {
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user