diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/ieee1394_core.c | 2 | ||||
-rw-r--r-- | drivers/ieee1394/ohci1394.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c index e4dd5bc3fb71..991c378496f8 100644 --- a/drivers/ieee1394/ieee1394_core.c +++ b/drivers/ieee1394/ieee1394_core.c | |||
@@ -1170,7 +1170,7 @@ static void __exit ieee1394_cleanup(void) | |||
1170 | unregister_chrdev_region(IEEE1394_CORE_DEV, 256); | 1170 | unregister_chrdev_region(IEEE1394_CORE_DEV, 256); |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | module_init(ieee1394_init); | 1173 | fs_initcall(ieee1394_init); /* same as ohci1394 */ |
1174 | module_exit(ieee1394_cleanup); | 1174 | module_exit(ieee1394_cleanup); |
1175 | 1175 | ||
1176 | /* Exported symbols */ | 1176 | /* Exported symbols */ |
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index baa090d08d20..330dcf7c699d 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
@@ -3719,5 +3719,7 @@ static int __init ohci1394_init(void) | |||
3719 | return pci_register_driver(&ohci1394_pci_driver); | 3719 | return pci_register_driver(&ohci1394_pci_driver); |
3720 | } | 3720 | } |
3721 | 3721 | ||
3722 | module_init(ohci1394_init); | 3722 | /* Register before most other device drivers. |
3723 | * Useful for remote debugging via physical DMA, e.g. using firescope. */ | ||
3724 | fs_initcall(ohci1394_init); | ||
3723 | module_exit(ohci1394_cleanup); | 3725 | module_exit(ohci1394_cleanup); |