File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
drivers/media/dvb-frontends Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1262,11 +1262,12 @@ static int m88ds3103_select(struct i2c_mux_core *muxc, u32 chan)
12621262 * New users must use I2C client binding directly!
12631263 */
12641264struct dvb_frontend * m88ds3103_attach (const struct m88ds3103_config * cfg ,
1265- struct i2c_adapter * i2c , struct i2c_adapter * * tuner_i2c_adapter )
1265+ struct i2c_adapter * i2c ,
1266+ struct i2c_adapter * * tuner_i2c_adapter )
12661267{
12671268 struct i2c_client * client ;
12681269 struct i2c_board_info board_info ;
1269- struct m88ds3103_platform_data pdata ;
1270+ struct m88ds3103_platform_data pdata = {} ;
12701271
12711272 pdata .clk = cfg -> clock ;
12721273 pdata .i2c_wr_max = cfg -> i2c_wr_max ;
@@ -1409,6 +1410,8 @@ static int m88ds3103_probe(struct i2c_client *client,
14091410 case M88DS3103_CHIP_ID :
14101411 break ;
14111412 default :
1413+ ret = - ENODEV ;
1414+ dev_err (& client -> dev , "Unknown device. Chip_id=%02x\n" , dev -> chip_id );
14121415 goto err_kfree ;
14131416 }
14141417
You can’t perform that action at this time.
0 commit comments