Skip to content

Commit 93f57c7

Browse files
niklas88hdeller
authored andcommitted
fbdev: atyfb: Remove unused clock determination
Just below the removed lines par->clk_wr_offset is hard coded to 3 so there is no use in determining a different clock just to then ignore it anyway. This also removes the only I/O port use remaining in the driver allowing it to be built without CONFIG_HAS_IOPORT. Link: https://lore.kernel.org/all/ZBx5aLo5h546BzBt@intel.com/ Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent f6cd4c9 commit 93f57c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/video/fbdev/aty/atyfb_base.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,11 +3498,6 @@ static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info,
34983498
if (ret)
34993499
goto atyfb_setup_generic_fail;
35003500
#endif
3501-
if (!(aty_ld_le32(CRTC_GEN_CNTL, par) & CRTC_EXT_DISP_EN))
3502-
par->clk_wr_offset = (inb(R_GENMO) & 0x0CU) >> 2;
3503-
else
3504-
par->clk_wr_offset = aty_ld_8(CLOCK_CNTL, par) & 0x03U;
3505-
35063501
/* according to ATI, we should use clock 3 for acelerated mode */
35073502
par->clk_wr_offset = 3;
35083503

0 commit comments

Comments
 (0)