From: Sam Ravnborg Date: Fri, 2 Mar 2007 22:59:04 +0000 (+0100) Subject: pci: fix section mismatch warning X-Git-Tag: v2.6.21-rc4~53^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=128bf5cb54dececc5209db65f8ef5d17d74244d9;p=linux-2.6-omap-h63xx.git pci: fix section mismatch warning drivers/pci/search.c caused following section mismatch warning (if compiled with CONFIG_HOTPLUG=n): WARNING: drivers/pci/built-in.o - Section mismatch: reference to .init.text: from .text.pci_find_bus after 'pci_find_bus' (at offset 0x24) This was due to pci_find_bus() calling a function marked __devinit. Fix was to remove the __devinit from the offending function. Signed-off-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/search.c b/drivers/pci/search.c index ff98eaddaa7..2dd8681d6b3 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -15,7 +15,7 @@ DECLARE_RWSEM(pci_bus_sem); -static struct pci_bus * __devinit +static struct pci_bus * pci_do_find_bus(struct pci_bus* bus, unsigned char busnr) { struct pci_bus* child;