Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
712642b8
Commit
712642b8
authored
Jan 26, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (5155): Properly initialize mute and radio frequency
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
f1557ceb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/media/radio/radio-maxiradio.c
drivers/media/radio/radio-maxiradio.c
+5
-3
No files found.
drivers/media/radio/radio-maxiradio.c
View file @
712642b8
...
@@ -117,8 +117,10 @@ static struct radio_device
...
@@ -117,8 +117,10 @@ static struct radio_device
unsigned
long
freq
;
unsigned
long
freq
;
struct
mutex
lock
;
struct
mutex
lock
;
}
radio_unit
=
{
0
,
0
,
0
,
0
,
};
}
radio_unit
=
{
.
muted
=
1
,
.
freq
=
FREQ_LO
,
};
static
void
outbit
(
unsigned
long
bit
,
__u16
io
)
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
...
@@ -405,7 +407,7 @@ static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_d
mutex_init
(
&
radio_unit
.
lock
);
mutex_init
(
&
radio_unit
.
lock
);
maxiradio_radio
.
priv
=
&
radio_unit
;
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!"
);
printk
(
"radio-maxiradio: can't register device!"
);
goto
err_out_free_region
;
goto
err_out_free_region
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment