diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-26 11:33:07 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 16:35:08 +0100 |
commit | 712642b8e371687e24ec8e1d34114beab18e92ca (patch) | |
tree | 903bb297ddebef8568b1f5728c1ad02774925f50 /drivers/media/radio/radio-maxiradio.c | |
parent | V4L/DVB (5154): Add some debug info, depending on debug level (diff) | |
download | linux-712642b8e371687e24ec8e1d34114beab18e92ca.tar.xz linux-712642b8e371687e24ec8e1d34114beab18e92ca.zip |
V4L/DVB (5155): Properly initialize mute and radio frequency
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/radio/radio-maxiradio.c')
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index e5bfbd15820c..8e184cfc1c94 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c @@ -117,8 +117,10 @@ static struct radio_device unsigned long freq; struct mutex lock; -} radio_unit = {0, 0, 0, 0, }; - +} radio_unit = { + .muted =1, + .freq = FREQ_LO, +}; static void outbit(unsigned long bit, __u16 io) { @@ -405,7 +407,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; } |