Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222881
b: refs/heads/master
c: 93c176f
h: refs/heads/master
i:
  222879: aafb337
v: v3
  • Loading branch information
Caglar Akyuz authored and Paul Mundt committed Dec 1, 2010
1 parent 8bf2bde commit abff7cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 22a95949d03548cb346d81d71ce6c64dc273f421
refs/heads/master: 93c176f39fedaeff854ccb7681d626d65bdffe52
14 changes: 6 additions & 8 deletions trunk/drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,10 +1029,6 @@ static int __init fb_probe(struct platform_device *device)
goto err_release_pl_mem;
}

ret = request_irq(par->irq, lcdc_irq_handler, 0, DRIVER_NAME, par);
if (ret)
goto err_release_pl_mem;

/* Initialize par */
da8xx_fb_info->var.bits_per_pixel = lcd_cfg->bpp;

Expand Down Expand Up @@ -1060,7 +1056,7 @@ static int __init fb_probe(struct platform_device *device)

ret = fb_alloc_cmap(&da8xx_fb_info->cmap, PALETTE_SIZE, 0);
if (ret)
goto err_free_irq;
goto err_release_pl_mem;
da8xx_fb_info->cmap.len = par->palette_sz;

/* initialize var_screeninfo */
Expand Down Expand Up @@ -1088,8 +1084,13 @@ static int __init fb_probe(struct platform_device *device)
goto err_cpu_freq;
}
#endif

ret = request_irq(par->irq, lcdc_irq_handler, 0, DRIVER_NAME, par);
if (ret)
goto irq_freq;
return 0;

irq_freq:
#ifdef CONFIG_CPU_FREQ
err_cpu_freq:
unregister_framebuffer(da8xx_fb_info);
Expand All @@ -1098,9 +1099,6 @@ static int __init fb_probe(struct platform_device *device)
err_dealloc_cmap:
fb_dealloc_cmap(&da8xx_fb_info->cmap);

err_free_irq:
free_irq(par->irq, par);

err_release_pl_mem:
dma_free_coherent(NULL, PALETTE_SIZE, par->v_palette_base,
par->p_palette_base);
Expand Down

0 comments on commit abff7cf

Please sign in to comment.