device: Make pci_dev_ops_pci structure global
This patch makes pci_dev_ops_pci structure global so that caller can make use of this structure using extern. Change-Id: I8de919aacccbc062475fb04f59ffb4957d3460b9 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/22814 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
55fa54d0c0
commit
ffc790bc7f
2 changed files with 3 additions and 2 deletions
|
@ -734,7 +734,7 @@ void pci_dev_init(struct device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Default device operation for PCI devices */
|
/** Default device operation for PCI devices */
|
||||||
static struct pci_operations pci_dev_ops_pci = {
|
struct pci_operations pci_dev_ops_pci = {
|
||||||
.set_subsystem = pci_dev_set_subsystem,
|
.set_subsystem = pci_dev_set_subsystem,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,8 @@ extern struct pci_driver _pci_drivers[];
|
||||||
/** end of compile time generated pci driver array */
|
/** end of compile time generated pci driver array */
|
||||||
extern struct pci_driver _epci_drivers[];
|
extern struct pci_driver _epci_drivers[];
|
||||||
|
|
||||||
|
/* Set Subsystem ID operation for PCI devices */
|
||||||
|
extern struct pci_operations pci_dev_ops_pci;
|
||||||
extern struct device_operations default_pci_ops_dev;
|
extern struct device_operations default_pci_ops_dev;
|
||||||
extern struct device_operations default_pci_ops_bus;
|
extern struct device_operations default_pci_ops_bus;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue