Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ide/legacy/hd.c: use late_initcall()

Since the later move to drivers/block/ will break the link order,
the module_init() has to become a late_initcall().

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: rmk@arm.linux.org.uk
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

authored by

Adrian Bunk and committed by
Bartlomiej Zolnierkiewicz
01c22bfc ffa793f9

+1 -2
-1
drivers/ide/Makefile
··· 62 62 63 63 obj-$(CONFIG_BLK_DEV_IDE) += arm/ mips/ 64 64 65 - # old hd driver must be last 66 65 ifeq ($(CONFIG_BLK_DEV_HD), y) 67 66 hd-core-y += legacy/hd.o 68 67 obj-y += hd-core.o
+1 -1
drivers/ide/legacy/hd.c
··· 812 812 } 813 813 __setup("hd=", parse_hd_setup); 814 814 815 - module_init(hd_init); 815 + late_initcall(hd_init);