[media] af9035: initialize si2168_config struct
authorOlli Salonen <olli.salonen@iki.fi>
Thu, 20 Nov 2014 20:33:48 +0000 (17:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Nov 2014 18:47:25 +0000 (16:47 -0200)
When new parameters are added for si2168 driver, the parameters have to be explicitly defined for each device if the
si2168_config struct is not initialized to all zeros.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/af9035.c

index 1896ab2..80a29f5 100644 (file)
@@ -1171,6 +1171,7 @@ static int it930x_frontend_attach(struct dvb_usb_adapter *adap)
 
        dev_dbg(&d->udev->dev, "adap->id=%d\n", adap->id);
 
+       memset(&si2168_config, 0, sizeof(si2168_config));
        si2168_config.i2c_adapter = &adapter;
        si2168_config.fe = &adap->fe[0];
        si2168_config.ts_mode = SI2168_TS_SERIAL;