summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-07-24 16:31:58 +0000
committerJohannes Stezenbach <devnull@localhost>2005-07-24 16:31:58 +0000
commitd6c137977ba098ca4c2f6b8abca786006536ac8a (patch)
treec619677c23b0baac55bdc0a79f442665643162d8 /linux/drivers
parentb66085a762a9e94bb16ee9fc96381dcb4713a46a (diff)
downloadmediapointer-dvb-s2-d6c137977ba098ca4c2f6b8abca786006536ac8a.tar.gz
mediapointer-dvb-s2-d6c137977ba098ca4c2f6b8abca786006536ac8a.tar.bz2
gcc-2.95 compile fix
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c3
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302.c8
2 files changed, 5 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
index b9d596883..246f7c7d6 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -800,9 +800,10 @@ EXPORT_SYMBOL(dvb_ca_en50221_camchange_irq);
*/
static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
{
- dprintk("%s\n", __FUNCTION__);
unsigned long irqsave;
+ dprintk("%s\n", __FUNCTION__);
+
write_lock_irqsave(&ca->slot_info[slot].lock, irqsave);
ca->pub->slot_shutdown(ca->pub, slot);
ca->slot_info[slot].slot_state = DVB_CA_SLOTSTATE_NONE;
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.c b/linux/drivers/media/dvb/frontends/lgdt3302.c
index c3b8d4e08..b153da47c 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302.c
+++ b/linux/drivers/media/dvb/frontends/lgdt3302.c
@@ -291,13 +291,11 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
/* Change only if we are actually changing the channel */
if (state->current_frequency != param->frequency) {
u8 buf[5];
+ struct i2c_msg msg = { .flags = 0, .buf = &buf[1], .len = 4 };
+ int err;
- /* This must be done before the initialized msg is declared */
state->config->pll_set(fe, param, buf);
-
- struct i2c_msg msg =
- { .addr = buf[0], .flags = 0, .buf = &buf[1], .len = 4 };
- int err;
+ msg.addr = buf[0];
dprintk("%s: tuner at 0x%02x bytes: 0x%02x 0x%02x "
"0x%02x 0x%02x\n", __FUNCTION__,