]> git.hungrycats.org Git - linux/commit
[PATCH] PCI: CONFIG_PCI=n build fix
authorAndrew Morton <akpm@osdl.org>
Wed, 6 Oct 2004 10:20:23 +0000 (03:20 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 6 Oct 2004 10:20:23 +0000 (03:20 -0700)
commitdedae7945b7df4f6fe57fc059f9d6aa9bf2b0a4f
tree126924bbd045a374e89d7e971e964d82370ab151
parent0e1a581b2f998e282d9aefce36f3cb98456fe1fd
[PATCH] PCI: CONFIG_PCI=n build fix

With CONFIG_PCI=n:

arch/i386/kernel/cpu/cyrix.c: In function `init_cyrix':
arch/i386/kernel/cpu/cyrix.c:285: `cyrix_55x0' undeclared (first use in this function)
arch/i386/kernel/cpu/cyrix.c:285: (Each undeclared identifier is reported only once
arch/i386/kernel/cpu/cyrix.c:285: for each function it appears in.)

Make pci_dev_present() a macro.  It doesn't make sense to require that
pci_device_id's be in scope when CONFIG_PCI=n

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
include/linux/pci.h