summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/lpwr/rppg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr/rppg.c')
-rw-r--r--drivers/gpu/nvgpu/lpwr/rppg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/rppg.c b/drivers/gpu/nvgpu/lpwr/rppg.c
index b1c72a4a..6fc86b2b 100644
--- a/drivers/gpu/nvgpu/lpwr/rppg.c
+++ b/drivers/gpu/nvgpu/lpwr/rppg.c
@@ -29,18 +29,15 @@
29static void pmu_handle_rppg_init_msg(struct gk20a *g, struct pmu_msg *msg, 29static void pmu_handle_rppg_init_msg(struct gk20a *g, struct pmu_msg *msg,
30 void *param, u32 handle, u32 status) 30 void *param, u32 handle, u32 status)
31{ 31{
32
33 u8 ctrlId = NV_PMU_RPPG_CTRL_ID_MAX;
34 u32 *success = param; 32 u32 *success = param;
35 33
36 if (status == 0) { 34 if (status == 0) {
37 switch (msg->msg.pg.rppg_msg.cmn.msg_id) { 35 switch (msg->msg.pg.rppg_msg.cmn.msg_id) {
38 case NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK: 36 case NV_PMU_RPPG_MSG_ID_INIT_CTRL_ACK:
39 ctrlId = msg->msg.pg.rppg_msg.init_ctrl_ack.ctrl_id;
40 *success = 1; 37 *success = 1;
41 nvgpu_pmu_dbg(g, "RPPG is acknowledged from PMU %x", 38 nvgpu_pmu_dbg(g, "RPPG is acknowledged from PMU %x",
42 msg->msg.pg.msg_type); 39 msg->msg.pg.msg_type);
43 break; 40 break;
44 } 41 }
45 } 42 }
46 43
@@ -160,5 +157,3 @@ u32 init_rppg(struct gk20a *g)
160 157
161 return status; 158 return status;
162} 159}
163
164