projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f09d74
)
fbdev: bf54x-lq043fb: use kzalloc over kmalloc/memset
author
Mike Frysinger
<
[email protected]
>
Tue, 16 Jun 2009 22:34:43 +0000
(15:34 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 17 Jun 2009 02:48:03 +0000
(19:48 -0700)
Signed-off-by: Mike Frysinger <
[email protected]
>
Cc: Krzysztof Helt <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/bf54x-lq043fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/bf54x-lq043fb.c
b/drivers/video/bf54x-lq043fb.c
index 8aa67dea06db54e50110f3c8d5aacae82486626d..e49ae5edcc008fcc6a698ad07388de8199ea4278 100644
(file)
--- a/
drivers/video/bf54x-lq043fb.c
+++ b/
drivers/video/bf54x-lq043fb.c
@@
-630,7
+630,7
@@
static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
fbinfo->fbops = &bfin_bf54x_fb_ops;
- fbinfo->pseudo_palette = k
m
alloc(sizeof(u32) * 16, GFP_KERNEL);
+ fbinfo->pseudo_palette = k
z
alloc(sizeof(u32) * 16, GFP_KERNEL);
if (!fbinfo->pseudo_palette) {
printk(KERN_ERR DRIVER_NAME
"Fail to allocate pseudo_palette\n");
@@
-639,8
+639,6
@@
static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
goto out4;
}
- memset(fbinfo->pseudo_palette, 0, sizeof(u32) * 16);
-
if (fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0)
< 0) {
printk(KERN_ERR DRIVER_NAME