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
Hide 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 @@
...
@@ -48,12 +48,14 @@
#define PRINT_WARN(x...) printk(KERN_WARNING XPRAM_NAME " warning:" x)
#define PRINT_WARN(x...) printk(KERN_WARNING XPRAM_NAME " warning:" x)
#define PRINT_ERR(x...) printk(KERN_ERR XPRAM_NAME " error:" 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
=
{
static
struct
sys_device
xpram_sys_device
=
{
.
name
=
"S/390 expanded memory RAM disk"
,
.
id
=
0
,
.
dev
=
{
.
cls
=
&
xpram_sysclass
,
.
name
=
"S/390 expanded memory RAM disk"
,
.
bus_id
=
"xpram"
,
},
};
};
typedef
struct
{
typedef
struct
{
...
@@ -485,6 +487,7 @@ static void __exit xpram_exit(void)
...
@@ -485,6 +487,7 @@ static void __exit xpram_exit(void)
unregister_blkdev
(
XPRAM_MAJOR
,
XPRAM_NAME
);
unregister_blkdev
(
XPRAM_MAJOR
,
XPRAM_NAME
);
devfs_remove
(
"slram"
);
devfs_remove
(
"slram"
);
sys_device_unregister
(
&
xpram_sys_device
);
sys_device_unregister
(
&
xpram_sys_device
);
sysdev_class_unregister
(
&
xpram_sys_class
);
}
}
static
int
__init
xpram_init
(
void
)
static
int
__init
xpram_init
(
void
)
...
@@ -502,9 +505,15 @@ static int __init xpram_init(void)
...
@@ -502,9 +505,15 @@ static int __init xpram_init(void)
rc
=
xpram_setup_sizes
(
xpram_pages
);
rc
=
xpram_setup_sizes
(
xpram_pages
);
if
(
rc
)
if
(
rc
)
return
rc
;
return
rc
;
rc
=
sys
_device_register
(
&
xpram_sys_device
);
rc
=
sys
dev_class_register
(
&
xpram_sysclass
);
if
(
rc
)
if
(
rc
)
return
rc
;
return
rc
;
rc
=
sys_device_register
(
&
xpram_sys_device
);
if
(
rc
)
{
sysdev_class_unregister
(
&
xpram_syclass
);
return
rc
;
}
rc
=
xpram_setup_blkdev
();
rc
=
xpram_setup_blkdev
();
if
(
rc
)
if
(
rc
)
sys_device_unregister
(
&
xpram_sys_device
);
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