[media] em28xx-dvb: Prepare for si2157 driver getting more parameters
authorMatthias Schwarzott <zzam@gentoo.org>
Tue, 15 Jul 2014 19:34:35 +0000 (16:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 00:28:41 +0000 (21:28 -0300)
Modify all users of si2157_config to correctly initialize all not
listed values to 0.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-dvb.c

index a121ed9561fd4467d109413ab753bbb7b20355bd..96a0bdbecfada9eea00acf1a9a7849012043007a 100644 (file)
@@ -1545,6 +1545,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
                        dvb->i2c_client_demod = client;
 
                        /* attach tuner */
+                       memset(&si2157_config, 0, sizeof(si2157_config));
                        si2157_config.fe = dvb->fe[0];
                        memset(&info, 0, sizeof(struct i2c_board_info));
                        strlcpy(info.type, "si2157", I2C_NAME_SIZE);