diff options
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 5 | ||||
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 6a6642ea48ce..c231e7a74ffb 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -1061,7 +1061,7 @@ void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg) | |||
1061 | if (debug) | 1061 | if (debug) |
1062 | printk(KERN_DEBUG PREFIX ": Xcv2028/3028 init called!\n"); | 1062 | printk(KERN_DEBUG PREFIX ": Xcv2028/3028 init called!\n"); |
1063 | 1063 | ||
1064 | if (NULL == cfg->video_dev) | 1064 | if (NULL == cfg || NULL == cfg->video_dev) |
1065 | return NULL; | 1065 | return NULL; |
1066 | 1066 | ||
1067 | if (!fe) { | 1067 | if (!fe) { |
@@ -1106,6 +1106,9 @@ void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg) | |||
1106 | 1106 | ||
1107 | tuner_info("type set to %s\n", "XCeive xc2028/xc3028 tuner"); | 1107 | tuner_info("type set to %s\n", "XCeive xc2028/xc3028 tuner"); |
1108 | 1108 | ||
1109 | if (cfg->ctrl) | ||
1110 | xc2028_set_config(fe, cfg->ctrl); | ||
1111 | |||
1109 | mutex_unlock(&xc2028_list_mutex); | 1112 | mutex_unlock(&xc2028_list_mutex); |
1110 | 1113 | ||
1111 | return fe; | 1114 | return fe; |
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index f24fb2a00f6f..a59d00fb2a36 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -23,6 +23,7 @@ struct xc2028_config { | |||
23 | struct i2c_adapter *i2c_adap; | 23 | struct i2c_adapter *i2c_adap; |
24 | u8 i2c_addr; | 24 | u8 i2c_addr; |
25 | void *video_dev; | 25 | void *video_dev; |
26 | struct xc2028_ctrl *ctrl; | ||
26 | int (*callback) (void *dev, int command, int arg); | 27 | int (*callback) (void *dev, int command, int arg); |
27 | }; | 28 | }; |
28 | 29 | ||