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
6eb9e1b9
Commit
6eb9e1b9
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] dtlk cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
7d943080
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
drivers/char/dtlk.c
drivers/char/dtlk.c
+5
-7
No files found.
drivers/char/dtlk.c
View file @
6eb9e1b9
...
@@ -333,8 +333,6 @@ static int dtlk_release(struct inode *inode, struct file *file)
...
@@ -333,8 +333,6 @@ static int dtlk_release(struct inode *inode, struct file *file)
return
0
;
return
0
;
}
}
static
devfs_handle_t
devfs_handle
;
static
int
__init
dtlk_init
(
void
)
static
int
__init
dtlk_init
(
void
)
{
{
dtlk_port_lpc
=
0
;
dtlk_port_lpc
=
0
;
...
@@ -347,7 +345,7 @@ static int __init dtlk_init(void)
...
@@ -347,7 +345,7 @@ static int __init dtlk_init(void)
}
}
if
(
dtlk_dev_probe
()
==
0
)
if
(
dtlk_dev_probe
()
==
0
)
printk
(
", MAJOR %d
\n
"
,
dtlk_major
);
printk
(
", MAJOR %d
\n
"
,
dtlk_major
);
devfs_
handle
=
devfs_register
(
NULL
,
"dtlk"
,
DEVFS_FL_DEFAULT
,
devfs_
register
(
NULL
,
"dtlk"
,
DEVFS_FL_DEFAULT
,
dtlk_major
,
DTLK_MINOR
,
dtlk_major
,
DTLK_MINOR
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
,
&
dtlk_fops
,
NULL
);
&
dtlk_fops
,
NULL
);
...
@@ -370,7 +368,7 @@ static void __exit dtlk_cleanup (void)
...
@@ -370,7 +368,7 @@ static void __exit dtlk_cleanup (void)
dtlk_write_tts
(
DTLK_CLEAR
);
dtlk_write_tts
(
DTLK_CLEAR
);
unregister_chrdev
(
dtlk_major
,
"dtlk"
);
unregister_chrdev
(
dtlk_major
,
"dtlk"
);
devfs_
unregister
(
devfs_handle
);
devfs_
remove
(
"dtlk"
);
release_region
(
dtlk_port_lpc
,
DTLK_IO_EXTENT
);
release_region
(
dtlk_port_lpc
,
DTLK_IO_EXTENT
);
}
}
...
...
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