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
36631a0c
Commit
36631a0c
authored
Apr 20, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] devfs: xpram
parent
66bd02d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/s390/block/xpram.c
drivers/s390/block/xpram.c
+1
-7
No files found.
drivers/s390/block/xpram.c
View file @
36631a0c
...
...
@@ -449,7 +449,6 @@ static int __init xpram_setup_blkdev(void)
offset
=
0
;
for
(
i
=
0
;
i
<
xpram_devs
;
i
++
)
{
struct
gendisk
*
disk
=
xpram_disks
[
i
];
char
name
[
16
];
xpram_devices
[
i
].
size
=
xpram_sizes
[
i
]
/
4
;
xpram_devices
[
i
].
offset
=
offset
;
...
...
@@ -460,13 +459,9 @@ static int __init xpram_setup_blkdev(void)
disk
->
private_data
=
&
xpram_devices
[
i
];
disk
->
queue
=
&
xpram_queue
;
sprintf
(
disk
->
disk_name
,
"slram%d"
,
i
);
sprintf
(
disk
->
disk_name
,
"slram/%d"
,
i
);
set_capacity
(
disk
,
xpram_sizes
[
i
]
<<
1
);
add_disk
(
disk
);
sprintf
(
name
,
"slram/%d"
,
i
);
devfs_register
(
NULL
,
name
,
DEVFS_FL_DEFAULT
,
disk
->
major
,
disk
->
first_minor
,
S_IFBLK
|
S_IRUSR
|
S_IWUSR
,
disk
->
fops
,
NULL
);
}
return
0
;
...
...
@@ -485,7 +480,6 @@ static void __exit xpram_exit(void)
for
(
i
=
0
;
i
<
xpram_devs
;
i
++
)
{
del_gendisk
(
xpram_disks
[
i
]);
put_disk
(
xpram_disks
[
i
]);
devfs_remove
(
"slram/%d"
,
i
);
}
unregister_blkdev
(
XPRAM_MAJOR
,
XPRAM_NAME
);
devfs_remove
(
"slram"
);
...
...
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