Skip to content

Commit 24ee854

Browse files
Davidlohr Buesohnaz
authored andcommitted
ipc: use device_initcall
... since __initcall is now deprecated. Signed-off-by: Davidlohr Bueso <[email protected]> Cc: Manfred Spraul <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 03120c4 commit 24ee854

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ipc/ipc_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,4 @@ static int __init ipc_sysctl_init(void)
281281
return 0;
282282
}
283283

284-
__initcall(ipc_sysctl_init);
284+
device_initcall(ipc_sysctl_init);

ipc/mqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,4 +1459,4 @@ static int __init init_mqueue_fs(void)
14591459
return error;
14601460
}
14611461

1462-
__initcall(init_mqueue_fs);
1462+
device_initcall(init_mqueue_fs);

ipc/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static int __init ipc_init(void)
128128
register_ipcns_notifier(&init_ipc_ns);
129129
return 0;
130130
}
131-
__initcall(ipc_init);
131+
device_initcall(ipc_init);
132132

133133
/**
134134
* ipc_init_ids - initialise ipc identifiers

0 commit comments

Comments
 (0)