diff options
author | Olli Salonen <olli.salonen@iki.fi> | 2014-11-20 21:33:48 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-21 19:47:25 +0100 |
commit | 251a5c4e3c2149e8b2fd64720e20bfa93fc2851d (patch) | |
tree | c3377c2ab7329dab6ee204419db5f318e7b0ba48 /drivers/media/usb | |
parent | [media] cxusb: initialize si2168_config struct (diff) | |
download | linux-251a5c4e3c2149e8b2fd64720e20bfa93fc2851d.tar.xz linux-251a5c4e3c2149e8b2fd64720e20bfa93fc2851d.zip |
[media] af9035: initialize si2168_config struct
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>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/af9035.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 1896ab218b11..80a29f5377ea 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c @@ -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; |