From: Bo Shen Date: Wed, 19 Mar 2014 07:47:55 +0000 (+0800) Subject: Video: atmel: avoid the id of fix screen info is overwritten X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7e4ab50418d5b34ab0dae95193dd71190e1fb50;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Nicolas Ferre Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index b74e5f5ddac8..e683b6ef9594 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -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");