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
nexedi
linux
Commits
1540760c
Commit
1540760c
authored
May 14, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] typhoon locking fix
Initialise the semaphore even if !MODULE
parent
e04dbc40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/media/radio/radio-typhoon.c
drivers/media/radio/radio-typhoon.c
+1
-1
No files found.
drivers/media/radio/radio-typhoon.c
View file @
1540760c
...
@@ -326,7 +326,6 @@ static int __init typhoon_init(void)
...
@@ -326,7 +326,6 @@ static int __init typhoon_init(void)
return
-
EINVAL
;
return
-
EINVAL
;
}
}
typhoon_unit
.
iobase
=
io
;
typhoon_unit
.
iobase
=
io
;
init_MUTEX
(
&
typhoon_unit
.
lock
);
if
(
mutefreq
<
87000
||
mutefreq
>
108500
)
{
if
(
mutefreq
<
87000
||
mutefreq
>
108500
)
{
printk
(
KERN_ERR
"radio-typhoon: You must set a frequency (in kHz) used when muting the card,
\n
"
);
printk
(
KERN_ERR
"radio-typhoon: You must set a frequency (in kHz) used when muting the card,
\n
"
);
...
@@ -337,6 +336,7 @@ static int __init typhoon_init(void)
...
@@ -337,6 +336,7 @@ static int __init typhoon_init(void)
#endif
/* MODULE */
#endif
/* MODULE */
printk
(
KERN_INFO
BANNER
);
printk
(
KERN_INFO
BANNER
);
init_MUTEX
(
&
typhoon_unit
.
lock
);
io
=
typhoon_unit
.
iobase
;
io
=
typhoon_unit
.
iobase
;
if
(
!
request_region
(
io
,
8
,
"typhoon"
))
{
if
(
!
request_region
(
io
,
8
,
"typhoon"
))
{
printk
(
KERN_ERR
"radio-typhoon: port 0x%x already in use
\n
"
,
printk
(
KERN_ERR
"radio-typhoon: port 0x%x already in use
\n
"
,
...
...
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