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
d14fa1a9
Commit
d14fa1a9
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: optcd
parent
9bf3aa83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/cdrom/optcd.c
drivers/cdrom/optcd.c
+4
-4
No files found.
drivers/cdrom/optcd.c
View file @
d14fa1a9
...
...
@@ -71,7 +71,6 @@
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/io.h>
#include <linux/blk.h>
...
...
@@ -2033,6 +2032,8 @@ static int __init optcd_init(void)
optcd_disk
->
first_minor
=
0
;
optcd_disk
->
fops
=
&
opt_fops
;
sprintf
(
optcd_disk
->
disk_name
,
"optcd"
);
sprintf
(
optcd_disk
->
devfs_name
,
"optcd"
);
if
(
!
request_region
(
optcd_port
,
4
,
"optcd"
))
{
printk
(
KERN_ERR
"optcd: conflict, I/O port 0x%x already used
\n
"
,
optcd_port
);
...
...
@@ -2065,8 +2066,8 @@ static int __init optcd_init(void)
put_disk
(
optcd_disk
);
return
-
EIO
;
}
devfs_register
(
NULL
,
"optcd"
,
DEVFS_FL_DEFAULT
,
MAJOR_NR
,
0
,
S_IFBLK
|
S_IRUGO
|
S_IWUGO
,
&
opt_fops
,
NULL
);
blk_init_queue
(
&
opt_queue
,
do_optcd_request
,
&
optcd_lock
);
blk_queue_hardsect_size
(
&
opt_queue
,
2048
);
optcd_disk
->
queue
=
&
opt_queue
;
...
...
@@ -2079,7 +2080,6 @@ static int __init optcd_init(void)
static
void
__exit
optcd_exit
(
void
)
{
devfs_remove
(
"optcd"
);
del_gendisk
(
optcd_disk
);
put_disk
(
optcd_disk
);
if
(
unregister_blkdev
(
MAJOR_NR
,
"optcd"
)
==
-
EINVAL
)
{
...
...
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