]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/video/zoran/zoran_card.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / media / video / zoran / zoran_card.c
index e520abf9f4c3d8fc40d108ef2fbf47e55db772f5..9f2bac51964781f51c2e5b9789511d9b3d04668c 100644 (file)
@@ -943,7 +943,7 @@ zoran_open_init_params (struct zoran *zr)
        memset(zr->jpg_settings.jpg_comp.COM_data, 0,
               sizeof(zr->jpg_settings.jpg_comp.COM_data));
        zr->jpg_settings.jpg_comp.jpeg_markers =
-           JPEG_MARKER_DHT | JPEG_MARKER_DQT;
+           V4L2_JPEG_MARKER_DHT | V4L2_JPEG_MARKER_DQT;
        i = zoran_check_jpg_settings(zr, &zr->jpg_settings, 0);
        if (i)
                dprintk(1, KERN_ERR "%s: %s internal error\n",
@@ -1041,7 +1041,7 @@ zr36057_init (struct zoran *zr)
        /* allocate memory *before* doing anything to the hardware
         * in case allocation fails */
        zr->stat_com = kzalloc(BUZ_NUM_STAT_COM * 4, GFP_KERNEL);
-       zr->video_dev = kmalloc(sizeof(struct video_device), GFP_KERNEL);
+       zr->video_dev = video_device_alloc();
        if (!zr->stat_com || !zr->video_dev) {
                dprintk(1,
                        KERN_ERR