pci: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Fri, 2 Mar 2007 22:59:04 +0000 (23:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 23:36:30 +0000 (15:36 -0800)
commit128bf5cb54dececc5209db65f8ef5d17d74244d9
treeddd70bb032c575bcb0b38e3dac29a413aa780cc0
parentc1996c2778e90f80cb9fc6a52508068f10d39611
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 <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/search.c