public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] pci_scan_device() mustn't be __devinit
@ 2008-01-30 20:02 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2008-01-30 20:02 UTC (permalink / raw)
  To: gregkh; +Cc: linux-pci, linux-kernel

This patch fixes the following section mismatch:

<--  snip  -->

...
WARNING: drivers/pci/built-in.o(.text+0x150f): Section mismatch in reference from the function pci_scan_single_device() to the function .devinit.text:pci_scan_device()
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
d5abdec38c49b44c9ba37c97f2f31f2c2fd19037 
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 0ed050a..2533b69 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -873,8 +873,7 @@ EXPORT_SYMBOL(alloc_pci_dev);
  * Read the config data for a PCI device, sanity-check it
  * and fill in the dev structure...
  */
-static struct pci_dev * __devinit
-pci_scan_device(struct pci_bus *bus, int devfn)
+static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn)
 {
 	struct pci_dev *dev;
 	u32 l;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-30 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 20:02 [2.6 patch] pci_scan_device() mustn't be __devinit Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox