Skip to content

Commit e9da59f

Browse files
James BottomleyLinus Torvalds
authored andcommitted
[PATCH] fix character subsystem initialisation
chr_dev_init() should be a subsys_initcall(), since it needs to initialize before any drivers that use the character device infrastructure.
1 parent 4793785 commit e9da59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/mem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,4 +713,4 @@ static int __init chr_dev_init(void)
713713
return 0;
714714
}
715715

716-
__initcall(chr_dev_init);
716+
subsys_initcall(chr_dev_init);

0 commit comments

Comments
 (0)