Video: atmel: avoid the id of fix screen info is overwritten
Correct passing parameter sequence, which will avoid the id of fix screen info is overwritten. Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
cf071d2ab3
commit
b7e4ab5041
|
@ -1190,12 +1190,12 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
|
||||||
if (!sinfo->config)
|
if (!sinfo->config)
|
||||||
goto free_info;
|
goto free_info;
|
||||||
|
|
||||||
strcpy(info->fix.id, sinfo->pdev->name);
|
|
||||||
info->flags = ATMEL_LCDFB_FBINFO_DEFAULT;
|
info->flags = ATMEL_LCDFB_FBINFO_DEFAULT;
|
||||||
info->pseudo_palette = sinfo->pseudo_palette;
|
info->pseudo_palette = sinfo->pseudo_palette;
|
||||||
info->fbops = &atmel_lcdfb_ops;
|
info->fbops = &atmel_lcdfb_ops;
|
||||||
|
|
||||||
info->fix = atmel_lcdfb_fix;
|
info->fix = atmel_lcdfb_fix;
|
||||||
|
strcpy(info->fix.id, sinfo->pdev->name);
|
||||||
|
|
||||||
/* Enable LCDC Clocks */
|
/* Enable LCDC Clocks */
|
||||||
sinfo->bus_clk = clk_get(dev, "hclk");
|
sinfo->bus_clk = clk_get(dev, "hclk");
|
||||||
|
|
Loading…
Reference in New Issue