Skip to content

Commit

Permalink
ide: small ide-scan-pci.c cleanup
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Adrian Bunk authored and Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent a4b5a4d commit 2eae6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions drivers/ide/ide-scan-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
1 change: 0 additions & 1 deletion include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,6 @@ void ide_init_disk(struct gendisk *, ide_drive_t *);

#ifdef CONFIG_IDEPCI_PCIBUS_ORDER
extern int ide_scan_direction;
int __init ide_scan_pcibus(void);
extern int __ide_pci_register_driver(struct pci_driver *driver, struct module *owner, const char *mod_name);
#define ide_pci_register_driver(d) __ide_pci_register_driver(d, THIS_MODULE, KBUILD_MODNAME)
#else
Expand Down

0 comments on commit 2eae6eb

Please sign in to comment.