diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2013-05-30 00:59:11 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-30 15:55:51 +0400 |
commit | 056b5405fa0083aeaf5c22157c19870b67884112 (patch) | |
tree | 59e26a86110b67abb4facd348d840fd5c75ba479 /drivers/staging | |
parent | a2526d1f3218dc68aca0e3bcc210b34ce6993216 (diff) | |
download | linux-056b5405fa0083aeaf5c22157c19870b67884112.tar.xz |
staging: xgifb: XGI_EnableChISLCD(): delete trivial function
The function returns always false, delete it.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index 8c55ebe7c5a9..73ee8ecc3378 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -4541,23 +4541,6 @@ static unsigned char XGI_IsLCDON(struct vb_device_info *pVBInfo) return 0; } -/* --------------------------------------------------------------------- */ -/* Function : XGI_EnableChISLCD */ -/* Input : */ -/* Output : 0 -> Not LCD mode */ -/* Description : if bool enable = true -> enable, else disable */ -/* --------------------------------------------------------------------- */ -static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo, - bool enable) -{ - unsigned short tempbx, tempah; - - tempbx = 0; - tempah = ~((unsigned short) xgifb_reg_get(pVBInfo->Part1Port, 0x2E)); - - return 0; -} - static void XGI_DisableBridge(struct xgifb_video_info *xgifb_info, struct xgi_hw_device_info *HwDeviceExtension, struct vb_device_info *pVBInfo) @@ -4586,7 +4569,6 @@ static void XGI_DisableBridge(struct xgifb_video_info *xgifb_info, if (pVBInfo->VBType & (VB_SIS302LV | VB_XGI301C)) { if (((pVBInfo->VBInfo & (SetCRT2ToLCD | XGI_SetCRT2ToLCDA))) || - (XGI_EnableChISLCD(pVBInfo, false)) || (XGI_IsLCDON(pVBInfo))) /* LVDS Driver power down */ xgifb_reg_or(pVBInfo->Part4Port, 0x30, 0x80); @@ -5480,16 +5462,11 @@ static void XGI_EnableBridge(struct xgifb_video_info *xgifb_info, xgifb_reg_and_or(pVBInfo->Part2Port, 0x00, ~0xE0, 0x20); /* shampoo 0129 */ if (pVBInfo->VBType & (VB_SIS302LV | VB_XGI301C)) { - if (!XGI_EnableChISLCD(pVBInfo, false)) { - if (XGI_EnableChISLCD(pVBInfo, true) || - (pVBInfo->VBInfo & - (SetCRT2ToLCD | XGI_SetCRT2ToLCDA))) - /* LVDS PLL power on */ - xgifb_reg_and( - pVBInfo->Part4Port, - 0x2A, - 0x7F); - } + if (pVBInfo->VBInfo & + (SetCRT2ToLCD | XGI_SetCRT2ToLCDA)) + /* LVDS PLL power on */ + xgifb_reg_and(pVBInfo->Part4Port, 0x2A, + 0x7F); /* LVDS Driver power on */ xgifb_reg_and(pVBInfo->Part4Port, 0x30, 0x7F); } |