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
f0d80e91
Commit
f0d80e91
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: swim3
parent
6dfb870f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/block/swim3.c
drivers/block/swim3.c
+1
-7
No files found.
drivers/block/swim3.c
View file @
f0d80e91
...
...
@@ -1015,6 +1015,7 @@ int swim3_init(void)
disk
->
private_data
=
&
floppy_states
[
i
];
disk
->
queue
=
&
swim3_queue
;
sprintf
(
disk
->
disk_name
,
"fd%d"
,
i
);
sprintf
(
disk
->
devfs_name
,
"floppy/%d"
,
i
);
set_capacity
(
disk
,
2880
);
add_disk
(
disk
);
}
...
...
@@ -1031,7 +1032,6 @@ static int swim3_add_device(struct device_node *swim)
{
struct
device_node
*
mediabay
;
struct
floppy_state
*
fs
=
&
floppy_states
[
floppy_count
];
char
floppy_name
[
16
];
if
(
swim
->
n_addrs
<
2
)
{
...
...
@@ -1093,12 +1093,6 @@ static int swim3_add_device(struct device_node *swim)
printk
(
KERN_INFO
"fd%d: SWIM3 floppy controller %s
\n
"
,
floppy_count
,
mediabay
?
"in media bay"
:
""
);
sprintf
(
floppy_name
,
"floppy/%d"
,
floppy_count
);
devfs_register
(
NULL
,
floppy_name
,
DEVFS_FL_DEFAULT
,
FLOPPY_MAJOR
,
floppy_count
,
S_IFBLK
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IWGRP
,
&
floppy_fops
,
NULL
);
floppy_count
++
;
return
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