diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
commit | c43768cbb7655ea5ff782ae250f6e2ef4297cf98 (patch) | |
tree | 3982e41dde3eecaa3739a5d1a8ed18d04bd74f01 /drivers/pci/access.c | |
parent | 1a8dd307cc0a2119be4e578c517795464e6dabba (diff) | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) |
Merge branch 'master' into for-next
Pull linus#master to merge PER_CPU_DEF_ATTRIBUTES and alpha build fix
changes. As alpha in percpu tree uses 'weak' attribute instead of
inline assembly, there's no need for __used attribute.
Conflicts:
arch/alpha/include/asm/percpu.h
arch/mn10300/kernel/vmlinux.lds.S
include/linux/percpu-defs.h
Diffstat (limited to 'drivers/pci/access.c')
-rw-r--r-- | drivers/pci/access.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/pci/access.c b/drivers/pci/access.c index 0f3706512686..db23200c4874 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c | |||
@@ -66,6 +66,25 @@ EXPORT_SYMBOL(pci_bus_write_config_byte); | |||
66 | EXPORT_SYMBOL(pci_bus_write_config_word); | 66 | EXPORT_SYMBOL(pci_bus_write_config_word); |
67 | EXPORT_SYMBOL(pci_bus_write_config_dword); | 67 | EXPORT_SYMBOL(pci_bus_write_config_dword); |
68 | 68 | ||
69 | /** | ||
70 | * pci_bus_set_ops - Set raw operations of pci bus | ||
71 | * @bus: pci bus struct | ||
72 | * @ops: new raw operations | ||
73 | * | ||
74 | * Return previous raw operations | ||
75 | */ | ||
76 | struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops) | ||
77 | { | ||
78 | struct pci_ops *old_ops; | ||
79 | unsigned long flags; | ||
80 | |||
81 | spin_lock_irqsave(&pci_lock, flags); | ||
82 | old_ops = bus->ops; | ||
83 | bus->ops = ops; | ||
84 | spin_unlock_irqrestore(&pci_lock, flags); | ||
85 | return old_ops; | ||
86 | } | ||
87 | EXPORT_SYMBOL(pci_bus_set_ops); | ||
69 | 88 | ||
70 | /** | 89 | /** |
71 | * pci_read_vpd - Read one entry from Vital Product Data | 90 | * pci_read_vpd - Read one entry from Vital Product Data |