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
84cbffc0
Commit
84cbffc0
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] xd cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
025cfa69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
drivers/block/xd.c
drivers/block/xd.c
+3
-4
No files found.
drivers/block/xd.c
View file @
84cbffc0
...
...
@@ -146,8 +146,6 @@ static int nodma = XD_DONT_USE_DMA;
static
struct
request_queue
xd_queue
;
static
devfs_handle_t
devfs_handle
=
NULL
;
/* xd_init: register the block device number and set up pointer tables */
static
int
__init
xd_init
(
void
)
{
...
...
@@ -178,7 +176,7 @@ static int __init xd_init(void)
printk
(
"xd: Unable to get major number %d
\n
"
,
MAJOR_NR
);
goto
out1
;
}
devfs_
handle
=
devfs_mk_dir
(
NULL
,
"xd"
,
NULL
);
devfs_
mk_dir
(
NULL
,
"xd"
,
NULL
);
blk_init_queue
(
&
xd_queue
,
do_xd_request
,
&
xd_lock
);
if
(
xd_detect
(
&
controller
,
&
address
))
{
...
...
@@ -246,6 +244,7 @@ static int __init xd_init(void)
out3:
release_region
(
xd_iobase
,
4
);
out2:
devfs_remove
(
"xd"
);
blk_cleanup_queue
(
&
xd_queue
);
unregister_blkdev
(
MAJOR_NR
,
"xd"
);
out1:
...
...
@@ -1055,7 +1054,7 @@ void cleanup_module(void)
}
blk_cleanup_queue
(
&
xd_queue
);
release_region
(
xd_iobase
,
4
);
devfs_
unregister
(
devfs_handle
);
devfs_
remove
(
"xd"
);
if
(
xd_drives
)
{
free_irq
(
xd_irq
,
NULL
);
free_dma
(
xd_dma
);
...
...
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