Merge branch 'pci/virtualization'
[muen/linux.git] / drivers / pci / pci-sysfs.c
index 478dde8330c308f241f6368d68153ce4039383b1..116e97dafda0c6fa7da5852bd9093f01fa066d94 100644 (file)
@@ -1515,11 +1515,10 @@ static int pci_create_capabilities_sysfs(struct pci_dev *dev)
        /* Active State Power Management */
        pcie_aspm_create_sysfs_dev_files(dev);
 
        /* Active State Power Management */
        pcie_aspm_create_sysfs_dev_files(dev);
 
-       if (!pci_probe_reset_function(dev)) {
+       if (dev->reset_fn) {
                retval = device_create_file(&dev->dev, &reset_attr);
                if (retval)
                        goto error;
                retval = device_create_file(&dev->dev, &reset_attr);
                if (retval)
                        goto error;
-               dev->reset_fn = 1;
        }
        return 0;
 
        }
        return 0;