]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide/legacy/hd.c: use late_initcall()
authorAdrian Bunk <bunk@kernel.org>
Wed, 16 Jul 2008 18:33:47 +0000 (20:33 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 16 Jul 2008 18:33:47 +0000 (20:33 +0200)
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>
drivers/ide/Makefile
drivers/ide/legacy/hd.c

index 8605536ea18f9128fee5dc9976aaf8da91aec7aa..39e99ace5cd3485b7466848aba3c4684237e9c88 100644 (file)
@@ -62,7 +62,6 @@ endif
 
 obj-$(CONFIG_BLK_DEV_IDE)              += arm/ mips/
 
-# old hd driver must be last
 ifeq ($(CONFIG_BLK_DEV_HD), y)
        hd-core-y += legacy/hd.o
        obj-y += hd-core.o
index abdedf56643eb16f9daaa85caa05d41e79a1746a..00b695652b2a1444ed50f604143d082b425de410 100644 (file)
@@ -812,4 +812,4 @@ static int __init parse_hd_setup(char *line)
 }
 __setup("hd=", parse_hd_setup);
 
-module_init(hd_init);
+late_initcall(hd_init);