[media] v4l2: pass std by value to the write-only s_std ioctl
[linux-block.git] / drivers / media / pci / ivtv / ivtv-firmware.c
index 68387d4369d66f5260f9582db11f0f76dc8b6ccc..ed73edd2bcd308e310197ac3ff9bff2559905bd5 100644 (file)
@@ -302,7 +302,7 @@ static int ivtv_firmware_restart(struct ivtv *itv)
        /* Restore encoder video standard */
        std = itv->std;
        itv->std = 0;
-       ivtv_s_std_enc(itv, &std);
+       ivtv_s_std_enc(itv, std);
 
        if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
                ivtv_init_mpeg_decoder(itv);
@@ -310,7 +310,7 @@ static int ivtv_firmware_restart(struct ivtv *itv)
                /* Restore decoder video standard */
                std = itv->std_out;
                itv->std_out = 0;
-               ivtv_s_std_dec(itv, &std);
+               ivtv_s_std_dec(itv, std);
 
                /* Restore framebuffer if active */
                if (itv->ivtvfb_restore)