vme: Use root_device_register() not underlined version
authorChen Zhongjin <chenzhongjin@huawei.com>
Tue, 6 Dec 2022 01:50:33 +0000 (09:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 16:00:18 +0000 (17:00 +0100)
root_device_register and __root_device_register have exactly same
effect. Use the not underlined version to keep usage consistency.

Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Link: https://lore.kernel.org/r/20221206015033.125827-1-chenzhongjin@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme_fake.c

index 6454ccf..f5d2c34 100644 (file)
@@ -1069,7 +1069,7 @@ static int __init fake_init(void)
        struct vme_lm_resource *lm;
 
        /* We need a fake parent device */
-       vme_root = __root_device_register("vme", THIS_MODULE);
+       vme_root = root_device_register("vme");
        if (IS_ERR(vme_root))
                return PTR_ERR(vme_root);