From: Hans Verkuil Date: Fri, 11 Nov 2016 10:33:05 +0000 (-0200) Subject: [media] cobalt: fix copy-and-paste error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f750b2b15125e842a2bd0a8c16f06ee65da26a2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] cobalt: fix copy-and-paste error The vmr_stat variable was filled with the contents of the control register, not the status register. Classic copy-and-paste error. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c b/drivers/media/pci/cobalt/cobalt-v4l2.c index 3fea24613059..def4a3b37084 100644 --- a/drivers/media/pci/cobalt/cobalt-v4l2.c +++ b/drivers/media/pci/cobalt/cobalt-v4l2.c @@ -527,7 +527,7 @@ static void cobalt_video_input_status_show(struct cobalt_stream *s) cvi_ctrl = ioread32(&cvi->control); cvi_stat = ioread32(&cvi->status); vmr_ctrl = ioread32(&vmr->control); - vmr_stat = ioread32(&vmr->control); + vmr_stat = ioread32(&vmr->status); cobalt_info("rx%d: cvi resolution: %dx%d\n", rx, ioread32(&cvi->frame_width), ioread32(&cvi->frame_height)); cobalt_info("rx%d: cvi control: %s%s%s\n", rx,