All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/ide: make ide-scan-pci.c driver explicitly non-modular
@ 2015-12-09 21:45 ` Paul Gortmaker
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Gortmaker @ 2015-12-09 21:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Gortmaker, David S. Miller, linux-ide

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" <davem@davemloft.net>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c
index c3da53e7bb2b..86aa88aeb3a6 100644
--- a/drivers/ide/ide-scan-pci.c
+++ b/drivers/ide/ide-scan-pci.c
@@ -107,5 +107,4 @@ static int __init ide_scan_pcibus(void)
 
 	return 0;
 }
-
-module_init(ide_scan_pcibus);
+device_initcall(ide_scan_pcibus);
-- 
2.2.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] drivers/ide: make ide-scan-pci.c driver explicitly non-modular
@ 2015-12-09 21:45 ` Paul Gortmaker
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Gortmaker @ 2015-12-09 21:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Gortmaker, David S. Miller, linux-ide

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" <davem@davemloft.net>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c
index c3da53e7bb2b..86aa88aeb3a6 100644
--- a/drivers/ide/ide-scan-pci.c
+++ b/drivers/ide/ide-scan-pci.c
@@ -107,5 +107,4 @@ static int __init ide_scan_pcibus(void)
 
 	return 0;
 }
-
-module_init(ide_scan_pcibus);
+device_initcall(ide_scan_pcibus);
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers/ide: make ide-scan-pci.c driver explicitly non-modular
  2015-12-09 21:45 ` Paul Gortmaker
  (?)
@ 2016-01-18 19:13 ` David Miller
  -1 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2016-01-18 19:13 UTC (permalink / raw)
  To: paul.gortmaker; +Cc: linux-kernel, linux-ide

From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Wed, 9 Dec 2015 16:45:51 -0500

> 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" <davem@davemloft.net>
> Cc: linux-ide@vger.kernel.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-18 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 21:45 [PATCH] drivers/ide: make ide-scan-pci.c driver explicitly non-modular Paul Gortmaker
2015-12-09 21:45 ` Paul Gortmaker
2016-01-18 19:13 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.