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
025cfa69
Commit
025cfa69
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] umem cleanup
switched to devfs_remove(), killed gratitious devfs_handle_t variable.
parent
7827cc75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
drivers/block/umem.c
drivers/block/umem.c
+2
-8
No files found.
drivers/block/umem.c
View file @
025cfa69
...
...
@@ -102,10 +102,6 @@ static int major_nr;
#include <linux/blk.h>
#include <linux/blkpg.h>
static
devfs_handle_t
devfs_handle
;
/* For the directory */
struct
cardinfo
{
int
card_number
;
struct
pci_dev
*
dev
;
...
...
@@ -1160,7 +1156,7 @@ int __init mm_init(void)
if
(
!
mm_gendisk
[
i
])
goto
out
;
}
devfs_
handle
=
devfs_
mk_dir
(
NULL
,
"umem"
,
NULL
);
devfs_mk_dir
(
NULL
,
"umem"
,
NULL
);
for
(
i
=
0
;
i
<
num_cards
;
i
++
)
{
struct
gendisk
*
disk
=
mm_gendisk
[
i
];
...
...
@@ -1201,9 +1197,7 @@ void __exit mm_cleanup(void)
del_gendisk
(
mm_gendisk
[
i
]);
put_disk
(
mm_gendisk
[
i
]);
}
if
(
devfs_handle
)
devfs_unregister
(
devfs_handle
);
devfs_handle
=
NULL
;
devfs_remove
(
"umem"
);
pci_unregister_driver
(
&
mm_pci_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