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
e5496ae1
Commit
e5496ae1
authored
Jun 09, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[s390 xpram] Convert to use new system device API.
parent
9bbfa0fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
drivers/s390/block/xpram.c
drivers/s390/block/xpram.c
+15
-6
No files found.
drivers/s390/block/xpram.c
View file @
e5496ae1
...
...
@@ -48,12 +48,14 @@
#define PRINT_WARN(x...) printk(KERN_WARNING XPRAM_NAME " warning:" x)
#define PRINT_ERR(x...) printk(KERN_ERR XPRAM_NAME " error:" x)
static
struct
sysdev_class
xpram_sysclass
=
{
set_kset_name
(
"xpram"
),
};
static
struct
sys_device
xpram_sys_device
=
{
.
name
=
"S/390 expanded memory RAM disk"
,
.
dev
=
{
.
name
=
"S/390 expanded memory RAM disk"
,
.
bus_id
=
"xpram"
,
},
.
id
=
0
,
.
cls
=
&
xpram_sysclass
,
};
typedef
struct
{
...
...
@@ -485,6 +487,7 @@ static void __exit xpram_exit(void)
unregister_blkdev
(
XPRAM_MAJOR
,
XPRAM_NAME
);
devfs_remove
(
"slram"
);
sys_device_unregister
(
&
xpram_sys_device
);
sysdev_class_unregister
(
&
xpram_sys_class
);
}
static
int
__init
xpram_init
(
void
)
...
...
@@ -502,9 +505,15 @@ static int __init xpram_init(void)
rc
=
xpram_setup_sizes
(
xpram_pages
);
if
(
rc
)
return
rc
;
rc
=
sys
_device_register
(
&
xpram_sys_device
);
rc
=
sys
dev_class_register
(
&
xpram_sysclass
);
if
(
rc
)
return
rc
;
rc
=
sys_device_register
(
&
xpram_sys_device
);
if
(
rc
)
{
sysdev_class_unregister
(
&
xpram_syclass
);
return
rc
;
}
rc
=
xpram_setup_blkdev
();
if
(
rc
)
sys_device_unregister
(
&
xpram_sys_device
);
...
...
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