projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: configs: linux: enable wifi load driver when boot kernel
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
pci
/
xen-pcifront.c
diff --git
a/drivers/pci/xen-pcifront.c
b/drivers/pci/xen-pcifront.c
index c777b97207d5378936a8f25a54be603d76691ab9..5f70fee59a947da1daddbeb2253043dc79c794fb 100644
(file)
--- a/
drivers/pci/xen-pcifront.c
+++ b/
drivers/pci/xen-pcifront.c
@@
-53,7
+53,7
@@
struct pcifront_device {
};
struct pcifront_sd {
};
struct pcifront_sd {
-
int domain
;
+
struct pci_sysdata sd
;
struct pcifront_device *pdev;
};
struct pcifront_device *pdev;
};
@@
-67,7
+67,9
@@
static inline void pcifront_init_sd(struct pcifront_sd *sd,
unsigned int domain, unsigned int bus,
struct pcifront_device *pdev)
{
unsigned int domain, unsigned int bus,
struct pcifront_device *pdev)
{
- sd->domain = domain;
+ /* Because we do not expose that information via XenBus. */
+ sd->sd.node = first_online_node;
+ sd->sd.domain = domain;
sd->pdev = pdev;
}
sd->pdev = pdev;
}
@@
-468,8
+470,8
@@
static int pcifront_scan_root(struct pcifront_device *pdev,
dev_info(&pdev->xdev->dev, "Creating PCI Frontend Bus %04x:%02x\n",
domain, bus);
dev_info(&pdev->xdev->dev, "Creating PCI Frontend Bus %04x:%02x\n",
domain, bus);
- bus_entry = k
m
alloc(sizeof(*bus_entry), GFP_KERNEL);
- sd = k
m
alloc(sizeof(*sd), GFP_KERNEL);
+ bus_entry = k
z
alloc(sizeof(*bus_entry), GFP_KERNEL);
+ sd = k
z
alloc(sizeof(*sd), GFP_KERNEL);
if (!bus_entry || !sd) {
err = -ENOMEM;
goto err_out;
if (!bus_entry || !sd) {
err = -ENOMEM;
goto err_out;