diff options
Diffstat (limited to 'drivers/md/faulty.c')
-rw-r--r-- | drivers/md/faulty.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index 0248f8e7eac0..f12e83086897 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c | |||
@@ -316,9 +316,10 @@ static int stop(mddev_t *mddev) | |||
316 | return 0; | 316 | return 0; |
317 | } | 317 | } |
318 | 318 | ||
319 | static mdk_personality_t faulty_personality = | 319 | static struct mdk_personality faulty_personality = |
320 | { | 320 | { |
321 | .name = "faulty", | 321 | .name = "faulty", |
322 | .level = LEVEL_FAULTY, | ||
322 | .owner = THIS_MODULE, | 323 | .owner = THIS_MODULE, |
323 | .make_request = make_request, | 324 | .make_request = make_request, |
324 | .run = run, | 325 | .run = run, |
@@ -329,15 +330,16 @@ static mdk_personality_t faulty_personality = | |||
329 | 330 | ||
330 | static int __init raid_init(void) | 331 | static int __init raid_init(void) |
331 | { | 332 | { |
332 | return register_md_personality(FAULTY, &faulty_personality); | 333 | return register_md_personality(&faulty_personality); |
333 | } | 334 | } |
334 | 335 | ||
335 | static void raid_exit(void) | 336 | static void raid_exit(void) |
336 | { | 337 | { |
337 | unregister_md_personality(FAULTY); | 338 | unregister_md_personality(&faulty_personality); |
338 | } | 339 | } |
339 | 340 | ||
340 | module_init(raid_init); | 341 | module_init(raid_init); |
341 | module_exit(raid_exit); | 342 | module_exit(raid_exit); |
342 | MODULE_LICENSE("GPL"); | 343 | MODULE_LICENSE("GPL"); |
343 | MODULE_ALIAS("md-personality-10"); /* faulty */ | 344 | MODULE_ALIAS("md-personality-10"); /* faulty */ |
345 | MODULE_ALIAS("md-level--5"); | ||