Skip to content

Commit 8d74931

Browse files
Dr. David Alan Gilberthdeller
authored andcommitted
fbdev: omapfb: Remove some deadcode
commit f76ee89 ("omapfb: copy omapdss & displays for omapfb") took a copy of the omapdrm code into omapfb, however at that point a couple of functions were already unused at that point. Remove dispc_mgr_get_clock_div() and dispc_enable_fifomerge() from the omapfb copy. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent f89d17a commit 8d74931

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

drivers/video/fbdev/omap2/omapfb/dss/dispc.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,17 +1230,6 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
12301230
dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfffu));
12311231
}
12321232

1233-
void dispc_enable_fifomerge(bool enable)
1234-
{
1235-
if (!dss_has_feature(FEAT_FIFO_MERGE)) {
1236-
WARN_ON(enable);
1237-
return;
1238-
}
1239-
1240-
DSSDBG("FIFO merge %s\n", enable ? "enabled" : "disabled");
1241-
REG_FLD_MOD(DISPC_CONFIG, enable ? 1 : 0, 14, 14);
1242-
}
1243-
12441233
void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane,
12451234
u32 *fifo_low, u32 *fifo_high, bool use_fifomerge,
12461235
bool manual_update)
@@ -3656,22 +3645,6 @@ void dispc_mgr_set_clock_div(enum omap_channel channel,
36563645
dispc_mgr_set_lcd_divisor(channel, cinfo->lck_div, cinfo->pck_div);
36573646
}
36583647

3659-
int dispc_mgr_get_clock_div(enum omap_channel channel,
3660-
struct dispc_clock_info *cinfo)
3661-
{
3662-
unsigned long fck;
3663-
3664-
fck = dispc_fclk_rate();
3665-
3666-
cinfo->lck_div = REG_GET(DISPC_DIVISORo(channel), 23, 16);
3667-
cinfo->pck_div = REG_GET(DISPC_DIVISORo(channel), 7, 0);
3668-
3669-
cinfo->lck = fck / cinfo->lck_div;
3670-
cinfo->pck = cinfo->lck / cinfo->pck_div;
3671-
3672-
return 0;
3673-
}
3674-
36753648
u32 dispc_read_irqstatus(void)
36763649
{
36773650
return dispc_read_reg(DISPC_IRQSTATUS);

drivers/video/fbdev/omap2/omapfb/dss/dss.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ void dispc_disable_sidle(void);
366366

367367
void dispc_lcd_enable_signal(bool enable);
368368
void dispc_pck_free_enable(bool enable);
369-
void dispc_enable_fifomerge(bool enable);
370369
void dispc_enable_gamma_table(bool enable);
371370

372371
typedef bool (*dispc_div_calc_func)(int lckd, int pckd, unsigned long lck,
@@ -388,8 +387,6 @@ void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane,
388387

389388
void dispc_mgr_set_clock_div(enum omap_channel channel,
390389
const struct dispc_clock_info *cinfo);
391-
int dispc_mgr_get_clock_div(enum omap_channel channel,
392-
struct dispc_clock_info *cinfo);
393390
void dispc_set_tv_pclk(unsigned long pclk);
394391

395392
u32 dispc_read_irqstatus(void);

0 commit comments

Comments
 (0)