diff options
-rw-r--r-- | drivers/video/sis/init301.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/video/sis/init301.c b/drivers/video/sis/init301.c index 2d88f908170a..c3e070a6effd 100644 --- a/drivers/video/sis/init301.c +++ b/drivers/video/sis/init301.c | |||
@@ -8564,11 +8564,9 @@ SiS_ChrontelDoSomething3(struct SiS_Private *SiS_Pr, unsigned short ModeNo) | |||
8564 | static void | 8564 | static void |
8565 | SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) | 8565 | SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) |
8566 | { | 8566 | { |
8567 | unsigned short temp,tempcl,tempch; | 8567 | unsigned short temp; |
8568 | 8568 | ||
8569 | SiS_LongDelay(SiS_Pr, 1); | 8569 | SiS_LongDelay(SiS_Pr, 1); |
8570 | tempcl = 3; | ||
8571 | tempch = 0; | ||
8572 | 8570 | ||
8573 | do { | 8571 | do { |
8574 | temp = SiS_GetCH701x(SiS_Pr,0x66); | 8572 | temp = SiS_GetCH701x(SiS_Pr,0x66); |
@@ -8582,13 +8580,6 @@ SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) | |||
8582 | 8580 | ||
8583 | SiS_SetCH701xForLCD(SiS_Pr); | 8581 | SiS_SetCH701xForLCD(SiS_Pr); |
8584 | 8582 | ||
8585 | if(tempcl == 0) { | ||
8586 | if(tempch == 3) break; | ||
8587 | SiS_ChrontelResetDB(SiS_Pr); | ||
8588 | tempcl = 3; | ||
8589 | tempch++; | ||
8590 | } | ||
8591 | tempcl--; | ||
8592 | temp = SiS_GetCH701x(SiS_Pr,0x76); | 8583 | temp = SiS_GetCH701x(SiS_Pr,0x76); |
8593 | temp &= 0xfb; /* Reset PLL */ | 8584 | temp &= 0xfb; /* Reset PLL */ |
8594 | SiS_SetCH701x(SiS_Pr,0x76,temp); | 8585 | SiS_SetCH701x(SiS_Pr,0x76,temp); |