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

Merge tag 'fbdev-for-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev

Pull fbdev updates from Helge Deller:

- omapfb: Remove unused code (Dr. David Alan Gilbert)

- sh7760fb: Fix memory leak in error path of sh7760fb_alloc_mem() (Zhen
Lei)

* tag 'fbdev-for-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
fbdev: omapfb: Remove some deadcode
fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()

+1 -32
-27
drivers/video/fbdev/omap2/omapfb/dss/dispc.c
··· 1230 1230 dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfffu)); 1231 1231 } 1232 1232 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 - 1244 1233 void dispc_ovl_compute_fifo_thresholds(enum omap_plane plane, 1245 1234 u32 *fifo_low, u32 *fifo_high, bool use_fifomerge, 1246 1235 bool manual_update) ··· 3643 3654 DSSDBG("pck = %lu (%u)\n", cinfo->pck, cinfo->pck_div); 3644 3655 3645 3656 dispc_mgr_set_lcd_divisor(channel, cinfo->lck_div, cinfo->pck_div); 3646 - } 3647 - 3648 - int dispc_mgr_get_clock_div(enum omap_channel channel, 3649 - struct dispc_clock_info *cinfo) 3650 - { 3651 - unsigned long fck; 3652 - 3653 - fck = dispc_fclk_rate(); 3654 - 3655 - cinfo->lck_div = REG_GET(DISPC_DIVISORo(channel), 23, 16); 3656 - cinfo->pck_div = REG_GET(DISPC_DIVISORo(channel), 7, 0); 3657 - 3658 - cinfo->lck = fck / cinfo->lck_div; 3659 - cinfo->pck = cinfo->lck / cinfo->pck_div; 3660 - 3661 - return 0; 3662 3657 } 3663 3658 3664 3659 u32 dispc_read_irqstatus(void)
-3
drivers/video/fbdev/omap2/omapfb/dss/dss.h
··· 366 366 367 367 void dispc_lcd_enable_signal(bool enable); 368 368 void dispc_pck_free_enable(bool enable); 369 - void dispc_enable_fifomerge(bool enable); 370 369 void dispc_enable_gamma_table(bool enable); 371 370 372 371 typedef bool (*dispc_div_calc_func)(int lckd, int pckd, unsigned long lck, ··· 387 388 388 389 void dispc_mgr_set_clock_div(enum omap_channel channel, 389 390 const struct dispc_clock_info *cinfo); 390 - int dispc_mgr_get_clock_div(enum omap_channel channel, 391 - struct dispc_clock_info *cinfo); 392 391 void dispc_set_tv_pclk(unsigned long pclk); 393 392 394 393 u32 dispc_read_irqstatus(void);
+1 -2
drivers/video/fbdev/sh7760fb.c
··· 409 409 vram = PAGE_SIZE; 410 410 411 411 fbmem = dma_alloc_coherent(info->device, vram, &par->fbdma, GFP_KERNEL); 412 - 413 412 if (!fbmem) 414 413 return -ENOMEM; 415 414 416 415 if ((par->fbdma & SH7760FB_DMA_MASK) != SH7760FB_DMA_MASK) { 417 - sh7760fb_free_mem(info); 416 + dma_free_coherent(info->device, vram, fbmem, par->fbdma); 418 417 dev_err(info->device, "kernel gave me memory at 0x%08lx, which is" 419 418 "unusable for the LCDC\n", (unsigned long)par->fbdma); 420 419 return -ENOMEM;