]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/cyber2000fb.c
[SCSI] sym53c8xx: Work around 53c896 erratum
[linux-2.6-omap-h63xx.git] / drivers / video / cyber2000fb.c
index 7a6eeda5ae9aabf48bc4032093be88fc08c8eac5..9bb2cbfe4a3db65506dc6ff781ea73b7263c194a 100644 (file)
@@ -50,7 +50,6 @@
 #include <asm/io.h>
 #include <asm/pgtable.h>
 #include <asm/system.h>
-#include <asm/uaccess.h>
 
 #ifdef __arm__
 #include <asm/mach-types.h>
@@ -1221,11 +1220,10 @@ cyberpro_alloc_fb_info(unsigned int id, char *name)
 {
        struct cfb_info *cfb;
 
-       cfb = kmalloc(sizeof(struct cfb_info), GFP_KERNEL);
+       cfb = kzalloc(sizeof(struct cfb_info), GFP_KERNEL);
        if (!cfb)
                return NULL;
 
-       memset(cfb, 0, sizeof(struct cfb_info));
 
        cfb->id                 = id;