[PATCH 5/6] kvm-s390: use register_virtio_root_device()

Mark McLoughlin
2008-12-10T17:47:52Z

This is basically a no-op change, since it does exactly the
same thing as s390_root_dev_register() when the caller isn't
a module.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
---
drivers/s390/kvm/kvm_virtio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index c79cf05..d3f7d94 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -335,7 +335,7 @@ static int __init kvm_devices_init(void)
if (!MACHINE_IS_KVM)
return -ENODEV;

- kvm_root = s390_root_dev_register("kvm_s390");
+ kvm_root = register_virtio_root_device("kvm_s390");
if (IS_ERR(kvm_root)) {
rc = PTR_ERR(kvm_root);
printk(KERN_ERR "Could not register kvm_s390 root device");
@@ -344,7 +344,7 @@ static int __init kvm_devices_init(void)

rc = vmem_add_mapping(real_memory_size, PAGE_SIZE);
if (rc) {
- s390_root_dev_unregister(kvm_root);
+ unregister_virtio_root_device(kvm_root);
return rc;
}

--
1.5.4.3