diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-26 08:33:07 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-26 08:33:07 -0200 |
commit | 2388ccb87f6cc5371a4aeb1de8a95334456e0a60 (patch) | |
tree | 49e7711640c58538b872c3e57d55bdafe08f85f9 /linux | |
parent | 0ef45ee3c01a3ceda41697593a278285008e2a5b (diff) | |
download | mediapointer-dvb-s2-2388ccb87f6cc5371a4aeb1de8a95334456e0a60.tar.gz mediapointer-dvb-s2-2388ccb87f6cc5371a4aeb1de8a95334456e0a60.tar.bz2 |
Properly initialize mute and radio frequency
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/radio/radio-maxiradio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/radio/radio-maxiradio.c b/linux/drivers/media/radio/radio-maxiradio.c index b0efc8a35..05d6aaef2 100644 --- a/linux/drivers/media/radio/radio-maxiradio.c +++ b/linux/drivers/media/radio/radio-maxiradio.c @@ -125,8 +125,10 @@ static struct radio_device #else struct semaphore lock; #endif -} radio_unit = {0, 0, 0, 0, }; - +} radio_unit = { + .muted =1, + .freq = FREQ_LO, +}; static void outbit(unsigned long bit, __u16 io) { @@ -413,7 +415,7 @@ static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_d mutex_init(&radio_unit.lock); maxiradio_radio.priv = &radio_unit; - if(video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) { + if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) { printk("radio-maxiradio: can't register device!"); goto err_out_free_region; } |