Globalize and add EXPORT_SYMBOL_GPL for pci_restore_bars. Signed-off-by: John W. Linville <linville@tuxdriver.com> --- Some have expressed interest in making general use of the the pci_restore_bars function. Revised to use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL. drivers/pci/pci.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -228,7 +228,7 @@ pci_find_parent_resource(const struct pc * Restore the BAR values for a given device, so as to make it * accessible by its driver. */ -static void +void pci_restore_bars(struct pci_dev *dev) { int i, numres; @@ -833,6 +833,7 @@ struct pci_dev *isa_bridge; EXPORT_SYMBOL(isa_bridge); #endif +EXPORT_SYMBOL_GPL(pci_restore_bars); EXPORT_SYMBOL(pci_enable_device_bars); EXPORT_SYMBOL(pci_enable_device); EXPORT_SYMBOL(pci_disable_device); -- John W. Linville linville@tuxdriver.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [patch 2.6.12 (repost w/ corrected subject)] pci: restore BAR values in pci_enable_device_bars
- From: "David S. Miller" <davem@davemloft.net>
- Re: [patch 2.6.12 (repost w/ corrected subject)] pci: restore BAR values in pci_enable_device_bars
- From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
- Re: [patch 2.6.12 (repost w/ corrected subject)] pci: restore BAR values in pci_enable_device_bars
- From: "David S. Miller" <davem@davemloft.net>
- Re: [patch 2.6.12 (repost w/ corrected subject)] pci: restore BAR values in pci_enable_device_bars
- From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
- [patch 2.6.13-rc2] pci: restore BAR values from pci_set_power_state for D3hot->D0
- From: "John W. Linville" <linville@tuxdriver.com>
- Re: [patch 2.6.13-rc2] pci: restore BAR values from pci_set_power_state for D3hot->D0
- From: Lennert Buytenhek <buytenh+lkml@liacs.nl>
- Re: [patch 2.6.13-rc2] pci: restore BAR values from pci_set_power_state for D3hot->D0
- From: "John W. Linville" <linville@tuxdriver.com>
- [patch 2.6.13-rc2] PCI: Add symbol exports for pci_restore_bars
- From: "John W. Linville" <linville@tuxdriver.com>
- Re: [patch 2.6.13-rc2] PCI: Add symbol exports for pci_restore_bars
- From: Greg KH <greg@kroah.com>
- Re: [patch 2.6.13-rc2] PCI: Add symbol exports for pci_restore_bars
- From: "John W. Linville" <linville@tuxdriver.com>
- Re: [patch 2.6.12 (repost w/ corrected subject)] pci: restore BAR values in pci_enable_device_bars
- Prev by Date: Re: share/private/slave a subtree - define vs enum
- Next by Date: GIT problems.
- Previous by thread: Re: [patch 2.6.13-rc2] PCI: Add symbol exports for pci_restore_bars
- Next by thread: Re: [patch 2.6.13-rc2] pci: restore BAR values from pci_set_power_state for D3hot->D0
- Index(es):
