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
9bf3aa83
Commit
9bf3aa83
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: gscd
parent
a2610cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/cdrom/gscd.c
drivers/cdrom/gscd.c
+1
-5
No files found.
drivers/cdrom/gscd.c
View file @
9bf3aa83
...
...
@@ -63,7 +63,6 @@
#include <linux/major.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/system.h>
#include <asm/io.h>
...
...
@@ -883,7 +882,6 @@ static void __exit gscd_exit(void)
{
CLEAR_TIMER
;
devfs_remove
(
"gscd"
);
del_gendisk
(
gscd_disk
);
put_disk
(
gscd_disk
);
if
((
unregister_blkdev
(
MAJOR_NR
,
"gscd"
)
==
-
EINVAL
))
{
...
...
@@ -958,15 +956,13 @@ static int __init gscd_init(void)
gscd_disk
->
first_minor
=
0
;
gscd_disk
->
fops
=
&
gscd_fops
;
sprintf
(
gscd_disk
->
disk_name
,
"gscd"
);
sprintf
(
gscd_disk
->
devfs_name
,
"gscd"
);
if
(
register_blkdev
(
MAJOR_NR
,
"gscd"
))
{
ret
=
-
EIO
;
goto
err_out2
;
}
devfs_register
(
NULL
,
"gscd"
,
DEVFS_FL_DEFAULT
,
MAJOR_NR
,
0
,
S_IFBLK
|
S_IRUGO
|
S_IWUGO
,
&
gscd_fops
,
NULL
);
blk_init_queue
(
&
gscd_queue
,
do_gscd_request
,
&
gscd_lock
);
disk_state
=
0
;
...
...
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