aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/intelfb
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-02-12 03:55:12 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:43 -0500
commitf5610b9c3a2896fcaa623b92d0f24d83f10bb2c0 (patch)
treef4ff35f5991debf0f892794687abc574cdaacb4f /drivers/video/intelfb
parentc4f28e54d61278203c2bb2aea0679e0a738235d2 (diff)
[PATCH] Video: fb, kzalloc changes
Use kzalloc instead of kmalloc + memset(0). Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: James Simmons <jsimmons@infradead.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/intelfb')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 664fc5cf962..b75eda84858 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -540,12 +540,11 @@ intelfb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent)
540 dinfo->pdev = pdev; 540 dinfo->pdev = pdev;
541 541
542 /* Reserve pixmap space. */ 542 /* Reserve pixmap space. */
543 info->pixmap.addr = kmalloc(64 * 1024, GFP_KERNEL); 543 info->pixmap.addr = kzalloc(64 * 1024, GFP_KERNEL);
544 if (info->pixmap.addr == NULL) { 544 if (info->pixmap.addr == NULL) {
545 ERR_MSG("Cannot reserve pixmap memory.\n"); 545 ERR_MSG("Cannot reserve pixmap memory.\n");
546 goto err_out_pixmap; 546 goto err_out_pixmap;
547 } 547 }
548 memset(info->pixmap.addr, 0, 64 * 1024);
549 548
550 /* set early this option because it could be changed by tv encoder 549 /* set early this option because it could be changed by tv encoder
551 driver */ 550 driver */