From: Dominik Brodowski Date: Mon, 1 Aug 2005 12:16:55 +0000 (+0200) Subject: [PATCH] pcmcia: defer ide-cs initialization after other IDE drivers started up X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b8d4669376332a6819e21994a78ecd5502d3ebc;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] pcmcia: defer ide-cs initialization after other IDE drivers started up Avoid registering PCMCIA CF cards before other IDE stuff. This means the risk of /dev/hd* being re-ordered is lessened. The _sane_ thing to assert any ordering is to use udev, nameif and so on, of course. Signed-off-by: Dominik Brodowski Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c index 03747439ac9..f1d1ec4e967 100644 --- a/drivers/ide/legacy/ide-cs.c +++ b/drivers/ide/legacy/ide-cs.c @@ -508,5 +508,5 @@ static void __exit exit_ide_cs(void) BUG_ON(dev_list != NULL); } -module_init(init_ide_cs); +late_initcall(init_ide_cs); module_exit(exit_ide_cs);