]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/dream/camera/msm_vfe7x.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[net-next-2.6.git] / drivers / staging / dream / camera / msm_vfe7x.c
index 33ab3ac6ac57a61668f4d76e292ee9d0dfba1e98..198656ac3de530ba68f39afd08b9bfa3be2fb22f 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/fs.h>
 #include <linux/sched.h>
 #include <linux/android_pmem.h>
+#include <linux/slab.h>
 #include <mach/msm_adsp.h>
 #include <linux/delay.h>
 #include <linux/wait.h>
@@ -255,8 +256,7 @@ static int vfe_7x_init(struct msm_vfe_callback *presp,
 
        extlen = sizeof(struct vfe_frame_extra);
 
-       extdata =
-               kmalloc(sizeof(extlen), GFP_ATOMIC);
+       extdata = kmalloc(extlen, GFP_ATOMIC);
        if (!extdata) {
                rc = -ENOMEM;
                goto init_fail;