diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-03-19 03:47:55 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-03-19 07:03:53 -0400 |
commit | b7e4ab50418d5b34ab0dae95193dd71190e1fb50 (patch) | |
tree | 7c71cc3956a001ebec570d5e3449a8590b556ed8 | |
parent | cf071d2ab3812f39a62cbe95b407a69f057ff61a (diff) |
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>
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1190 | if (!sinfo->config) | 1190 | if (!sinfo->config) |
1191 | goto free_info; | 1191 | goto free_info; |
1192 | 1192 | ||
1193 | strcpy(info->fix.id, sinfo->pdev->name); | ||
1194 | info->flags = ATMEL_LCDFB_FBINFO_DEFAULT; | 1193 | info->flags = ATMEL_LCDFB_FBINFO_DEFAULT; |
1195 | info->pseudo_palette = sinfo->pseudo_palette; | 1194 | info->pseudo_palette = sinfo->pseudo_palette; |
1196 | info->fbops = &atmel_lcdfb_ops; | 1195 | info->fbops = &atmel_lcdfb_ops; |
1197 | 1196 | ||
1198 | info->fix = atmel_lcdfb_fix; | 1197 | info->fix = atmel_lcdfb_fix; |
1198 | strcpy(info->fix.id, sinfo->pdev->name); | ||
1199 | 1199 | ||
1200 | /* Enable LCDC Clocks */ | 1200 | /* Enable LCDC Clocks */ |
1201 | sinfo->bus_clk = clk_get(dev, "hclk"); | 1201 | sinfo->bus_clk = clk_get(dev, "hclk"); |