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
7d943080
Commit
7d943080
authored
Dec 03, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Dec 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dsp56k cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
84cbffc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
drivers/char/dsp56k.c
drivers/char/dsp56k.c
+5
-7
No files found.
drivers/char/dsp56k.c
View file @
7d943080
...
...
@@ -499,8 +499,6 @@ static struct file_operations dsp56k_fops = {
/****** Init and module functions ******/
static
devfs_handle_t
devfs_handle
;
static
char
banner
[]
__initdata
=
KERN_INFO
"DSP56k driver installed
\n
"
;
static
int
__init
dsp56k_init_driver
(
void
)
...
...
@@ -514,10 +512,10 @@ static int __init dsp56k_init_driver(void)
printk
(
"DSP56k driver: Unable to register driver
\n
"
);
return
-
ENODEV
;
}
devfs_
handle
=
devfs_
register
(
NULL
,
"dsp56k"
,
DEVFS_FL_DEFAULT
,
DSP56K_MAJOR
,
0
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
dsp56k_fops
,
NULL
);
devfs_register
(
NULL
,
"dsp56k"
,
DEVFS_FL_DEFAULT
,
DSP56K_MAJOR
,
0
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
dsp56k_fops
,
NULL
);
printk
(
banner
);
return
0
;
...
...
@@ -527,7 +525,7 @@ module_init(dsp56k_init_driver);
static
void
__exit
dsp56k_cleanup_driver
(
void
)
{
unregister_chrdev
(
DSP56K_MAJOR
,
"dsp56k"
);
devfs_
unregister
(
devfs_handle
);
devfs_
remove
(
"dsp56k"
);
}
module_exit
(
dsp56k_cleanup_driver
);
...
...
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