diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-12-15 07:58:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:34 -0500 |
commit | 035da16fb529c0383ac27c712a5bbade5c11cafe (patch) | |
tree | 72fa6626ceba7763ac4fcb35e48724b27c4d0d6d /drivers/s390/block | |
parent | ff8561c4ad09ca38c866436c9d67df2309b7dd40 (diff) |
s390: remove s390_root_dev_*()
Replace s390_root_dev_register() with root_device_register() etc.
[Includes fix from Cornelia Huck]
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r-- | drivers/s390/block/dcssblk.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index 26ffc6ab441d..cfdcf1aed33c 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
19 | #include <linux/completion.h> | 19 | #include <linux/completion.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <asm/s390_rdev.h> | ||
22 | 21 | ||
23 | #define DCSSBLK_NAME "dcssblk" | 22 | #define DCSSBLK_NAME "dcssblk" |
24 | #define DCSSBLK_MINORS_PER_DISK 1 | 23 | #define DCSSBLK_MINORS_PER_DISK 1 |
@@ -946,7 +945,7 @@ dcssblk_check_params(void) | |||
946 | static void __exit | 945 | static void __exit |
947 | dcssblk_exit(void) | 946 | dcssblk_exit(void) |
948 | { | 947 | { |
949 | s390_root_dev_unregister(dcssblk_root_dev); | 948 | root_device_unregister(dcssblk_root_dev); |
950 | unregister_blkdev(dcssblk_major, DCSSBLK_NAME); | 949 | unregister_blkdev(dcssblk_major, DCSSBLK_NAME); |
951 | } | 950 | } |
952 | 951 | ||
@@ -955,22 +954,22 @@ dcssblk_init(void) | |||
955 | { | 954 | { |
956 | int rc; | 955 | int rc; |
957 | 956 | ||
958 | dcssblk_root_dev = s390_root_dev_register("dcssblk"); | 957 | dcssblk_root_dev = root_device_register("dcssblk"); |
959 | if (IS_ERR(dcssblk_root_dev)) | 958 | if (IS_ERR(dcssblk_root_dev)) |
960 | return PTR_ERR(dcssblk_root_dev); | 959 | return PTR_ERR(dcssblk_root_dev); |
961 | rc = device_create_file(dcssblk_root_dev, &dev_attr_add); | 960 | rc = device_create_file(dcssblk_root_dev, &dev_attr_add); |
962 | if (rc) { | 961 | if (rc) { |
963 | s390_root_dev_unregister(dcssblk_root_dev); | 962 | root_device_unregister(dcssblk_root_dev); |
964 | return rc; | 963 | return rc; |
965 | } | 964 | } |
966 | rc = device_create_file(dcssblk_root_dev, &dev_attr_remove); | 965 | rc = device_create_file(dcssblk_root_dev, &dev_attr_remove); |
967 | if (rc) { | 966 | if (rc) { |
968 | s390_root_dev_unregister(dcssblk_root_dev); | 967 | root_device_unregister(dcssblk_root_dev); |
969 | return rc; | 968 | return rc; |
970 | } | 969 | } |
971 | rc = register_blkdev(0, DCSSBLK_NAME); | 970 | rc = register_blkdev(0, DCSSBLK_NAME); |
972 | if (rc < 0) { | 971 | if (rc < 0) { |
973 | s390_root_dev_unregister(dcssblk_root_dev); | 972 | root_device_unregister(dcssblk_root_dev); |
974 | return rc; | 973 | return rc; |
975 | } | 974 | } |
976 | dcssblk_major = rc; | 975 | dcssblk_major = rc; |