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

arch/i386/kernel/cpu/mtrr/main.c: In function `have_wrcomb':
arch/i386/kernel/cpu/mtrr/main.c:86: warning: implicit declaration of function `pci_dev_put

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

index 7dcb03795de606e4a02cc9a663bf2255ad2f360a..7a3f983ccae97976ff8d5a966f7cd89495335825 100644 (file)
@@ -896,6 +896,7 @@ static inline struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *
 { return NULL; }
 
 #define pci_dev_present(ids)   (0)
+#define pci_dev_put(dev)       do { } while (0)
 
 static inline void pci_set_master(struct pci_dev *dev) { }
 static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }