Commit 7b9139086abca60b762d1b01231db88abfb666d5

Authored by Steven Toth
Committed by Mauro Carvalho Chehab
1 parent 52ce27bfc4

V4L/DVB (8467): cx23885: Minor cleanup to the debuging output for a specific register.

Don't display the register when it's not appropriate for the specific port.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

drivers/media/video/cx23885/cx23885-core.c
... ... @@ -1011,8 +1011,9 @@
1011 1011 port->reg_gpcnt_ctl, cx_read(port->reg_gpcnt_ctl));
1012 1012 dprintk(1, "%s() dma_ctl(0x%08X) 0x%08x\n", __func__,
1013 1013 port->reg_dma_ctl, cx_read(port->reg_dma_ctl));
1014   - dprintk(1, "%s() src_sel(0x%08X) 0x%08x\n", __func__,
1015   - port->reg_src_sel, cx_read(port->reg_src_sel));
  1014 + if (port->reg_src_sel)
  1015 + dprintk(1, "%s() src_sel(0x%08X) 0x%08x\n", __func__,
  1016 + port->reg_src_sel, cx_read(port->reg_src_sel));
1016 1017 dprintk(1, "%s() lngth(0x%08X) 0x%08x\n", __func__,
1017 1018 port->reg_lngth, cx_read(port->reg_lngth));
1018 1019 dprintk(1, "%s() hw_sop_ctrl(0x%08X) 0x%08x\n", __func__,