Commit 1502d6f2 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: fix build warning in pci-sysfs.c

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent b0b63a9d
...@@ -45,8 +45,7 @@ pci_config_attr(irq, "%u\n"); ...@@ -45,8 +45,7 @@ pci_config_attr(irq, "%u\n");
static ssize_t local_cpus_show(struct device *dev, char *buf) static ssize_t local_cpus_show(struct device *dev, char *buf)
{ {
struct pci_dev *pdev = to_pci_dev(dev); cpumask_t mask = pcibus_to_cpumask(to_pci_dev(dev)->bus->number);
cpumask_t mask = pcibus_to_cpumask(pdev->bus->number);
int len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask); int len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask);
strcat(buf,"\n"); strcat(buf,"\n");
return 1+len; return 1+len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment