diff options
author | Brian King <brking@us.ibm.com> | 2006-11-13 17:32:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-14 18:08:50 -0500 |
commit | a4625085445b86951d8482c0cdd6d52719f7c323 (patch) | |
tree | 0bace40f042c3116ab8a67b0ef2f24e59af995e2 /drivers/ata/libata-core.c | |
parent | cb07c9a1864a8eac9f3123e428100d5b2a16e65a (diff) |
[PATCH] libata: Convert from module_init to subsys_initcall
When building a monolithic kernel, the load order of drivers does not
work for SAS libata users, resulting in a kernel oops.
Convert libata to use subsys_initcall instead of module_init, which
ensures that libata gets loaded before any LLDD.
This is the same thing that scsi core does to solve the problem. The
load order problem was observed on ipr SAS adapters and should exist for
other SAS users as well.
Signed-off-by: Brian King <brking@us.ibm.com>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index a8fd0c3e59b3..915a55a6cc14 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5957,7 +5957,7 @@ static void __exit ata_exit(void) | |||
5957 | destroy_workqueue(ata_aux_wq); | 5957 | destroy_workqueue(ata_aux_wq); |
5958 | } | 5958 | } |
5959 | 5959 | ||
5960 | module_init(ata_init); | 5960 | subsys_initcall(ata_init); |
5961 | module_exit(ata_exit); | 5961 | module_exit(ata_exit); |
5962 | 5962 | ||
5963 | static unsigned long ratelimit_time; | 5963 | static unsigned long ratelimit_time; |