Commit 712642b8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (5155): Properly initialize mute and radio frequency

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent f1557ceb
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment