summaryrefslogtreecommitdiffstats
path: root/src/kernel/xloop_main_rhel_8.5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/xloop_main_rhel_8.5.c')
-rw-r--r--src/kernel/xloop_main_rhel_8.5.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kernel/xloop_main_rhel_8.5.c b/src/kernel/xloop_main_rhel_8.5.c
index eb1538e..2ff67f8 100644
--- a/src/kernel/xloop_main_rhel_8.5.c
+++ b/src/kernel/xloop_main_rhel_8.5.c
@@ -2038,7 +2038,7 @@ static int __init xloop_init(void)
if (err < 0)
goto err_out;
- if (register_blkdev(XLOOP_MAJOR, "xloop")) {
+ if (__register_blkdev(XLOOP_MAJOR, "xloop", xloop_probe)) {
err = -EIO;
goto misc_out;
}
@@ -2051,11 +2051,6 @@ static int __init xloop_init(void)
}
#endif
- if (__register_blkdev(XLOOP_MAJOR, "xloop", xloop_probe)) {
- err = -EIO;
- goto misc_out;
- }
-
/* pre-create number of devices given by config or max_xloop */
mutex_lock(&xloop_ctl_mutex);
for (i = 0; i < nr; i++)