aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r--drivers/md/linear.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c
index f46c98d05b44..79dee8159217 100644
--- a/drivers/md/linear.c
+++ b/drivers/md/linear.c
@@ -351,9 +351,10 @@ static void linear_status (struct seq_file *seq, mddev_t *mddev)
351} 351}
352 352
353 353
354static mdk_personality_t linear_personality= 354static struct mdk_personality linear_personality =
355{ 355{
356 .name = "linear", 356 .name = "linear",
357 .level = LEVEL_LINEAR,
357 .owner = THIS_MODULE, 358 .owner = THIS_MODULE,
358 .make_request = linear_make_request, 359 .make_request = linear_make_request,
359 .run = linear_run, 360 .run = linear_run,
@@ -363,16 +364,17 @@ static mdk_personality_t linear_personality=
363 364
364static int __init linear_init (void) 365static int __init linear_init (void)
365{ 366{
366 return register_md_personality (LINEAR, &linear_personality); 367 return register_md_personality (&linear_personality);
367} 368}
368 369
369static void linear_exit (void) 370static void linear_exit (void)
370{ 371{
371 unregister_md_personality (LINEAR); 372 unregister_md_personality (&linear_personality);
372} 373}
373 374
374 375
375module_init(linear_init); 376module_init(linear_init);
376module_exit(linear_exit); 377module_exit(linear_exit);
377MODULE_LICENSE("GPL"); 378MODULE_LICENSE("GPL");
378MODULE_ALIAS("md-personality-1"); /* LINEAR */ 379MODULE_ALIAS("md-personality-1"); /* LINEAR - degrecated*/
380MODULE_ALIAS("md-level--1");