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>
This commit is contained in:
Adrian Bunk
2008-02-01 23:09:16 +01:00
committed by Bartlomiej Zolnierkiewicz
parent a4b5a4d91d
commit 2eae6ebbf9
2 changed files with 2 additions and 8 deletions

View File

@ -81,7 +81,7 @@ static int __init ide_scan_pcidev(struct pci_dev *dev)
* module ordering not traditionally ordered.
*/
int __init ide_scan_pcibus(void)
static int __init ide_scan_pcibus(void)
{
struct pci_dev *dev = NULL;
struct pci_driver *d;
@ -113,9 +113,4 @@ int __init ide_scan_pcibus(void)
return 0;
}
static int __init ide_scan_pci(void)
{
return ide_scan_pcibus();
}
module_init(ide_scan_pci);
module_init(ide_scan_pcibus);