diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-01 17:09:16 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:16 -0500 |
commit | 2eae6ebbf99a083687466c010e3129fede9cdb4b (patch) | |
tree | 94b6fcdc86370351322ef91ef2244139398b4999 | |
parent | a4b5a4d91d6555df56489094cd5846cd03fc9239 (diff) |
ide: small ide-scan-pci.c cleanup
- ide_scan_pcibus() can become static
- instead of ide_scan_pci() we can use ide_scan_pcibus() directly
in module_init()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/ide-scan-pci.c | 9 | ||||
-rw-r--r-- | include/linux/ide.h | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c index 7ffa332d77ce..93d2e41be853 100644 --- a/drivers/ide/ide-scan-pci.c +++ b/drivers/ide/ide-scan-pci.c | |||
@@ -81,7 +81,7 @@ static int __init ide_scan_pcidev(struct pci_dev *dev) | |||
81 | * module ordering not traditionally ordered. | 81 | * module ordering not traditionally ordered. |
82 | */ | 82 | */ |
83 | 83 | ||
84 | int __init ide_scan_pcibus(void) | 84 | static int __init ide_scan_pcibus(void) |
85 | { | 85 | { |
86 | struct pci_dev *dev = NULL; | 86 | struct pci_dev *dev = NULL; |
87 | struct pci_driver *d; | 87 | struct pci_driver *d; |
@@ -113,9 +113,4 @@ int __init ide_scan_pcibus(void) | |||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int __init ide_scan_pci(void) | 116 | module_init(ide_scan_pcibus); |
117 | { | ||
118 | return ide_scan_pcibus(); | ||
119 | } | ||
120 | |||
121 | module_init(ide_scan_pci); | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index 27cb39de2ae2..c4d58b0e6509 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1017,7 +1017,6 @@ void ide_init_disk(struct gendisk *, ide_drive_t *); | |||
1017 | 1017 | ||
1018 | #ifdef CONFIG_IDEPCI_PCIBUS_ORDER | 1018 | #ifdef CONFIG_IDEPCI_PCIBUS_ORDER |
1019 | extern int ide_scan_direction; | 1019 | extern int ide_scan_direction; |
1020 | int __init ide_scan_pcibus(void); | ||
1021 | extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name); | 1020 | extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name); |
1022 | #define ide_pci_register_driver(d) __ide_pci_register_driver(d, THIS_MODULE, KBUILD_MODNAME) | 1021 | #define ide_pci_register_driver(d) __ide_pci_register_driver(d, THIS_MODULE, KBUILD_MODNAME) |
1023 | #else | 1022 | #else |