Video: atmel: avoid the id of fix screen info is overwritten
authorBo Shen <voice.shen@atmel.com>
Wed, 19 Mar 2014 07:47:55 +0000 (15:47 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 19 Mar 2014 11:03:53 +0000 (13:03 +0200)
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>
drivers/video/atmel_lcdfb.c

index b74e5f5ddac8b302d3ec3c5d012015556b3af946..e683b6ef95940dc6e5424691abff0806c61a784f 100644 (file)
@@ -1190,12 +1190,12 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
        if (!sinfo->config)
                goto free_info;
 
-       strcpy(info->fix.id, sinfo->pdev->name);
        info->flags = ATMEL_LCDFB_FBINFO_DEFAULT;
        info->pseudo_palette = sinfo->pseudo_palette;
        info->fbops = &atmel_lcdfb_ops;
 
        info->fix = atmel_lcdfb_fix;
+       strcpy(info->fix.id, sinfo->pdev->name);
 
        /* Enable LCDC Clocks */
        sinfo->bus_clk = clk_get(dev, "hclk");