Skip to content

Commit

Permalink
ide/legacy/hd.c: use late_initcall()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent ffa793f commit 01c22bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drivers/ide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/legacy/hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 01c22bf

Please sign in to comment.