mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04:00
fbdev: atmel_lcdfb: Use strscpy() to copy device name
Signed-off-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
98c2b2551b
commit
6f43abc6f8
@@ -1060,7 +1060,7 @@ static int atmel_lcdfb_probe(struct platform_device *pdev)
|
||||
info->fbops = &atmel_lcdfb_ops;
|
||||
|
||||
info->fix = atmel_lcdfb_fix;
|
||||
strcpy(info->fix.id, sinfo->pdev->name);
|
||||
strscpy(info->fix.id, sinfo->pdev->name);
|
||||
|
||||
/* Enable LCDC Clocks */
|
||||
sinfo->bus_clk = clk_get(dev, "hclk");
|
||||
|
||||
Reference in New Issue
Block a user