From: Mauro Carvalho Chehab Date: Tue, 22 Apr 2008 17:45:20 +0000 (-0300) Subject: V4L/DVB (7260): tuner-xc3028: Don't check return code for clock reset X-Git-Tag: v2.6.26-rc1~1084^2~392 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1fe8736955515f5075bef05c366b2d145d29cd44;p=karo-tx-linux.git V4L/DVB (7260): tuner-xc3028: Don't check return code for clock reset Only tm6000 needs to be aware when a frequency is being changed. This seems to improve channel change detection. Other bridges don't need this. So, better to discard any errors if this fails, and proceed changing the channels. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 42dc2c6ccbbf..a9caae1af49d 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c @@ -904,9 +904,11 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */, if (rc < 0) goto ret; - rc = priv->tuner_callback(priv->video_dev, XC2028_RESET_CLK, 1); - if (rc < 0) - goto ret; + /* Return code shouldn't be checked. + The reset CLK is needed only with tm6000. + Driver should work fine even if this fails. + */ + priv->tuner_callback(priv->video_dev, XC2028_RESET_CLK, 1); msleep(10);