Skip to content

Commit

Permalink
drivers/ide: make ide-scan-pci.c driver explicitly non-modular
Browse files Browse the repository at this point in the history
The Kconfig for this support is currently:

config IDEPCI_PCIBUS_ORDER
        bool "Probe IDE PCI devices in the PCI bus order (DEPRECATED)"

...meaning that it currently is not being built as a module by anyone.
Lets change the initcall to be the equivalent device_initcall, so that
when reading the driver code, there is no doubt it is builtin-only.

Unlike other similar changes, we leave the module.h header to be
included since this code interacts with other drivers and needs to
know what a struct module is.

Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Paul Gortmaker authored and davem330 committed Jan 18, 2016
1 parent b5a608f commit e04a2bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/ide-scan-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,4 @@ static int __init ide_scan_pcibus(void)

return 0;
}

module_init(ide_scan_pcibus);
device_initcall(ide_scan_pcibus);

0 comments on commit e04a2bd

Please sign in to comment.