Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: aty[128]fb: Remove dead code

This is dead code since 3.15. If there is no plan to use it
further, this can be removed forever.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: "Ville Syrjälä" <syrjala@sci.fi>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
[b.zolnierkie: fix patch summary]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1564514053-4571-1-git-send-email-jrdr.linux@gmail.com

authored by

Souptick Joarder and committed by
Bartlomiej Zolnierkiewicz
efbd44ab cc0c3e39

-47
-18
drivers/video/fbdev/aty/aty128fb.c
··· 487 487 const struct aty128fb_par *par); 488 488 static int aty128_decode_var(struct fb_var_screeninfo *var, 489 489 struct aty128fb_par *par); 490 - #if 0 491 - static void aty128_get_pllinfo(struct aty128fb_par *par, void __iomem *bios); 492 - static void __iomem *aty128_map_ROM(struct pci_dev *pdev, 493 - const struct aty128fb_par *par); 494 - #endif 495 490 static void aty128_timings(struct aty128fb_par *par); 496 491 static void aty128_init_engine(struct aty128fb_par *par); 497 492 static void aty128_reset_engine(const struct aty128fb_par *par); ··· 1660 1665 struct aty128fb_par *par) 1661 1666 { 1662 1667 if (par->chip_gen == rage_M3) { 1663 - #if 0 1664 - /* Note: For now, on M3, we set palette on both heads, which may 1665 - * be useless. Can someone with a M3 check this ? 1666 - * 1667 - * This code would still be useful if using the second CRTC to 1668 - * do mirroring 1669 - */ 1670 - 1671 - aty_st_le32(DAC_CNTL, aty_ld_le32(DAC_CNTL) | 1672 - DAC_PALETTE_ACCESS_CNTL); 1673 - aty_st_8(PALETTE_INDEX, regno); 1674 - aty_st_le32(PALETTE_DATA, (red<<16)|(green<<8)|blue); 1675 - #endif 1676 1668 aty_st_le32(DAC_CNTL, aty_ld_le32(DAC_CNTL) & 1677 1669 ~DAC_PALETTE_ACCESS_CNTL); 1678 1670 }
-29
drivers/video/fbdev/aty/atyfb_base.c
··· 1188 1188 (c_sync ? FB_SYNC_COMP_HIGH_ACT : 0); 1189 1189 1190 1190 switch (pix_width) { 1191 - #if 0 1192 - case CRTC_PIX_WIDTH_4BPP: 1193 - bpp = 4; 1194 - var->red.offset = 0; 1195 - var->red.length = 8; 1196 - var->green.offset = 0; 1197 - var->green.length = 8; 1198 - var->blue.offset = 0; 1199 - var->blue.length = 8; 1200 - var->transp.offset = 0; 1201 - var->transp.length = 0; 1202 - break; 1203 - #endif 1204 1191 case CRTC_PIX_WIDTH_8BPP: 1205 1192 bpp = 8; 1206 1193 var->red.offset = 0; ··· 1453 1466 var->bits_per_pixel, 1454 1467 par->crtc.vxres * var->bits_per_pixel / 8); 1455 1468 #endif /* CONFIG_BOOTX_TEXT */ 1456 - #if 0 1457 - /* switch to accelerator mode */ 1458 - if (!(par->crtc.gen_cntl & CRTC_EXT_DISP_EN)) 1459 - aty_st_le32(CRTC_GEN_CNTL, par->crtc.gen_cntl | CRTC_EXT_DISP_EN, par); 1460 - #endif 1461 1469 #ifdef DEBUG 1462 1470 { 1463 1471 /* dump non shadow CRTC, pll, LCD registers */ ··· 2376 2394 #else 2377 2395 case CLK_IBMRGB514: 2378 2396 par->pll_ops = &aty_pll_ibm514; 2379 - break; 2380 - #endif 2381 - #if 0 /* dead code */ 2382 - case CLK_STG1703: 2383 - par->pll_ops = &aty_pll_stg1703; 2384 - break; 2385 - case CLK_CH8398: 2386 - par->pll_ops = &aty_pll_ch8398; 2387 - break; 2388 - case CLK_ATT20C408: 2389 - par->pll_ops = &aty_pll_att20c408; 2390 2397 break; 2391 2398 #endif 2392 2399 default: