forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/kyro/STG4000InitDevice.c
....@@ -120,7 +120,7 @@
120120 {
121121 u32 R = 0, F = 0, OD = 0, ODIndex = 0;
122122 u32 ulBestR = 0, ulBestF = 0, ulBestOD = 0;
123
- u32 ulBestVCO = 0, ulBestClk = 0, ulBestScore = 0;
123
+ u32 ulBestClk = 0, ulBestScore = 0;
124124 u32 ulScore, ulPhaseScore, ulVcoScore;
125125 u32 ulTmp = 0, ulVCO;
126126 u32 ulScaleClockReq, ulMinClock, ulMaxClock;
....@@ -189,7 +189,6 @@
189189 ulScore = ulPhaseScore + ulVcoScore;
190190
191191 if (!ulBestScore) {
192
- ulBestVCO = ulVCO;
193192 ulBestOD = OD;
194193 ulBestF = F;
195194 ulBestR = R;
....@@ -206,7 +205,6 @@
206205 but we shall keep this code in case new restrictions come into play
207206 --------------------------------------------------------------------------*/
208207 if ((ulScore >= ulBestScore) && (OD > 0)) {
209
- ulBestVCO = ulVCO;
210208 ulBestOD = OD;
211209 ulBestF = F;
212210 ulBestR = R;
....@@ -244,7 +242,6 @@
244242 {
245243 u32 F, R, P;
246244 u16 core_pll = 0, sub;
247
- u32 ulCoreClock;
248245 u32 tmp;
249246 u32 ulChipSpeed;
250247
....@@ -282,7 +279,7 @@
282279 if (ulChipSpeed == 0)
283280 return -EINVAL;
284281
285
- ulCoreClock = ProgramClock(REF_FREQ, CORE_PLL_FREQ, &F, &R, &P);
282
+ ProgramClock(REF_FREQ, CORE_PLL_FREQ, &F, &R, &P);
286283
287284 core_pll |= ((P) | ((F - 2) << 2) | ((R - 2) << 11));
288285