aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index c42ef1c99fa0..6e0f59ed3d80 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -47,7 +47,6 @@
47 */ 47 */
48#define NR_RAID1_BIOS 256 48#define NR_RAID1_BIOS 256
49 49
50static mdk_personality_t raid1_personality;
51 50
52static void unplug_slaves(mddev_t *mddev); 51static void unplug_slaves(mddev_t *mddev);
53 52
@@ -2036,9 +2035,10 @@ static void raid1_quiesce(mddev_t *mddev, int state)
2036} 2035}
2037 2036
2038 2037
2039static mdk_personality_t raid1_personality = 2038static struct mdk_personality raid1_personality =
2040{ 2039{
2041 .name = "raid1", 2040 .name = "raid1",
2041 .level = 1,
2042 .owner = THIS_MODULE, 2042 .owner = THIS_MODULE,
2043 .make_request = make_request, 2043 .make_request = make_request,
2044 .run = run, 2044 .run = run,
@@ -2056,15 +2056,16 @@ static mdk_personality_t raid1_personality =
2056 2056
2057static int __init raid_init(void) 2057static int __init raid_init(void)
2058{ 2058{
2059 return register_md_personality(RAID1, &raid1_personality); 2059 return register_md_personality(&raid1_personality);
2060} 2060}
2061 2061
2062static void raid_exit(void) 2062static void raid_exit(void)
2063{ 2063{
2064 unregister_md_personality(RAID1); 2064 unregister_md_personality(&raid1_personality);
2065} 2065}
2066 2066
2067module_init(raid_init); 2067module_init(raid_init);
2068module_exit(raid_exit); 2068module_exit(raid_exit);
2069MODULE_LICENSE("GPL"); 2069MODULE_LICENSE("GPL");
2070MODULE_ALIAS("md-personality-3"); /* RAID1 */ 2070MODULE_ALIAS("md-personality-3"); /* RAID1 */
2071MODULE_ALIAS("md-level-1");