Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1353458

[PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI

From Michael Auchter <michael.auchter@ni.com>
Newsgroups linux.kernel
Subject [PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI
Date 2016-03-08 23:50 +0100
Message-ID <rayBY-7hS-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Add a stub for pci_clear_master() for when CONFIG_PCI is not set,
similar to what's done for pci_set_master().

Signed-off-by: Michael Auchter <michael.auchter@ni.com>
---
 include/linux/pci.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 2771625..5f684d0 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1425,6 +1425,7 @@ static inline struct pci_dev *pci_get_class(unsigned int class,
 #define pci_dev_put(dev)	do { } while (0)
 
 static inline void pci_set_master(struct pci_dev *dev) { }
+static inline void pci_clear_master(struct pci_dev *dev) { }
 static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }
 static inline void pci_disable_device(struct pci_dev *dev) { }
 static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI Michael Auchter <michael.auchter@ni.com> - 2016-03-08 23:50 +0100
  Re: [PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI Bjorn Helgaas <helgaas@kernel.org> - 2016-03-09 00:20 +0100
    Re: [PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI Michael Auchter <michael.auchter@ni.com> - 2016-03-09 03:20 +0100
      Re: [PATCH] pci: add pci_clear_master() stub for !CONFIG_PCI Bjorn Helgaas <helgaas@kernel.org> - 2016-03-09 18:00 +0100

csiph-web