mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02: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:
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user