[media] mxl111sf: check for errors after mxl111sf_write_reg in mxl111sf_idac_config
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 1 Nov 2011 02:29:17 +0000 (23:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 15:36:07 +0000 (13:36 -0200)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/mxl111sf-phy.c

index ae8c2f8..09787be 100644 (file)
@@ -328,9 +328,11 @@ int mxl111sf_idac_config(struct mxl111sf_state *state,
                /* set hysteresis value  reg: 0x0B<5:0> */
                ret = mxl111sf_write_reg(state, V6_IDAC_HYSTERESIS_REG,
                                         (hysteresis_value & 0x3F));
+               mxl_fail(ret);
        }
 
        ret = mxl111sf_write_reg(state, V6_IDAC_SETTINGS_REG, val);
+       mxl_fail(ret);
 
        return ret;
 }