1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-29 22:19:54 +02:00

cleaup code style

This commit is contained in:
Xiangfu Liu 2009-10-05 23:39:18 +08:00
parent d89fdafa97
commit 767987c14e

View File

@ -330,8 +330,8 @@ static int jzfb_alloc_vidmem(struct jzfb *jzfb)
static void jzfb_free_devmem(struct jzfb *jzfb)
{
dma_free_coherent(&jzfb->pdev->dev, jzfb->devmem_size, jzfb->devmem,
jzfb->devmem_phys);
dma_free_coherent(&jzfb->pdev->dev, jzfb->devmem_size, jzfb->devmem,
jzfb->devmem_phys);
}
static struct fb_ops jzfb_ops = {
@ -400,17 +400,17 @@ static int __devinit jzfb_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, jzfb);
fb_videomode_to_modelist(pdata->modes, pdata->num_modes,
&fb->modelist);
&fb->modelist);
fb->mode = pdata->modes;
fb_videomode_to_var(&fb->var, fb->mode);
fb->var.bits_per_pixel = pdata->bpp;
fb->var.bits_per_pixel = pdata->bpp;
jzfb_check_var(&fb->var, fb);
ret = jzfb_alloc_vidmem(jzfb);
if (ret) {
dev_err(&pdev->dev, "Failed to allocate video memory\n");
goto err_iounmap;
dev_err(&pdev->dev, "Failed to allocate video memory\n");
goto err_iounmap;
}
fb->fix = jzfb_fix;