Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333549
b: refs/heads/master
c: 6659145
h: refs/heads/master
i:
  333547: f882524
v: v3
  • Loading branch information
Tomi Valkeinen committed Sep 11, 2012
1 parent c658834 commit 3453897
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cd05430eeab0668c55ff4693ab79ff559b2b5c7
refs/heads/master: 6659145746bcf01ac650c76e5736c5003c2db230
2 changes: 0 additions & 2 deletions trunk/drivers/video/auo_k190x.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,6 @@ int __devinit auok190x_common_probe(struct platform_device *pdev,
fb_dealloc_cmap(&info->cmap);
err_cmap:
fb_deferred_io_cleanup(info);
kfree(info->fbdefio);
err_defio:
vfree((void *)info->screen_base);
err_irq:
Expand Down Expand Up @@ -1022,7 +1021,6 @@ int __devexit auok190x_common_remove(struct platform_device *pdev)
fb_dealloc_cmap(&info->cmap);

fb_deferred_io_cleanup(info);
kfree(info->fbdefio);

vfree((void *)info->screen_base);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/console/bitblit.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info,
image.depth = 1;

if (attribute) {
buf = kmalloc(cellsize, GFP_KERNEL);
buf = kmalloc(cellsize, GFP_ATOMIC);
if (!buf)
return;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static int __init fb_console_setup(char *this_opt)

while ((options = strsep(&this_opt, ",")) != NULL) {
if (!strncmp(options, "font:", 5))
strcpy(fontname, options + 5);
strlcpy(fontname, options + 5, sizeof(fontname));

if (!strncmp(options, "scrollback:", 11)) {
options += 11;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/video/mb862xx/mb862xxfbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ static int mb862xxfb_ioctl(struct fb_info *fbi, unsigned int cmd,
case MB862XX_L1_SET_CFG:
if (copy_from_user(l1_cfg, argp, sizeof(*l1_cfg)))
return -EFAULT;
if (l1_cfg->dh == 0 || l1_cfg->dw == 0)
return -EINVAL;
if ((l1_cfg->sw >= l1_cfg->dw) && (l1_cfg->sh >= l1_cfg->dh)) {
/* downscaling */
outreg(cap, GC_CAP_CSC,
Expand Down
15 changes: 14 additions & 1 deletion trunk/drivers/video/omap2/dss/sdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,21 @@ int omapdss_sdi_display_enable(struct omap_dss_device *dssdev)

sdi_config_lcd_manager(dssdev);

dss_sdi_init(sdi.datapairs);
/*
* LCLK and PCLK divisors are located in shadow registers, and we
* normally write them to DISPC registers when enabling the output.
* However, SDI uses pck-free as source clock for its PLL, and pck-free
* is affected by the divisors. And as we need the PLL before enabling
* the output, we need to write the divisors early.
*
* It seems just writing to the DISPC register is enough, and we don't
* need to care about the shadow register mechanism for pck-free. The
* exact reason for this is unknown.
*/
dispc_mgr_set_clock_div(dssdev->manager->id,
&sdi.mgr_config.clock_info);

dss_sdi_init(sdi.datapairs);
r = dss_sdi_enable();
if (r)
goto err_sdi_enable;
Expand Down

0 comments on commit 3453897

Please sign in to comment.