Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0da0ead90122578ef6e4afba9ba4bcd3455fd8e8
Commit:     0da0ead90122578ef6e4afba9ba4bcd3455fd8e8
Parent:     96bde06a2df1b363206d3cdef53134b84ff37813
Author:     Sergei Shtylyov <[EMAIL PROTECTED]>
AuthorDate: Sun Apr 1 21:13:58 2007 +0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed May 2 19:02:35 2007 -0700

    PCI: define pci_request/release_regions() for CONFIG_PCI=n
    
    Balance declarations of pci_request_regions() and pci_release_regions() with
    empty inline definitions for the CONFIG_PCI=n case -- otherwise my patch to
    drivers/net/3c59x.c in the -mm tree doesn't compile. :-)
    
    Signed-off-by: Sergei Shtylyov <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 include/linux/pci.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 3aba02a..99d4575 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -744,6 +744,9 @@ static inline int pci_set_power_state(struct pci_dev *dev, 
pci_power_t state) {
 static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t 
state) { return PCI_D0; }
 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int 
enable) { return 0; }
 
+static inline int pci_request_regions(struct pci_dev *dev, const char 
*res_name) { return -EIO; }
+static inline void pci_release_regions(struct pci_dev *dev) { }
+
 #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0)
 
 static inline void pci_block_user_cfg_access(struct pci_dev *dev) { }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to