]> Pileus Git - ~andy/linux/blobdiff - drivers/pci/pcie/aspm.c
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/dvrabel/uwb
[~andy/linux] / drivers / pci / pcie / aspm.c
index 9a7c9e1408a41823aef2198f6e3a8e0e220d609a..8f63f4c6b85f64e3f4d91d76ca7da90ac142c51e 100644 (file)
@@ -527,10 +527,10 @@ static int pcie_aspm_sanity_check(struct pci_dev *pdev)
                 */
                pci_read_config_dword(child_dev, child_pos + PCI_EXP_DEVCAP,
                        &reg32);
-               if (!(reg32 & PCI_EXP_DEVCAP_RBER && !aspm_force)) {
-                       printk("Pre-1.1 PCIe device detected, "
-                               "disable ASPM for %s. It can be enabled forcedly"
-                               " with 'pcie_aspm=force'\n", pci_name(pdev));
+               if (!(reg32 & PCI_EXP_DEVCAP_RBER) && !aspm_force) {
+                       dev_printk(KERN_INFO, &child_dev->dev, "disabling ASPM"
+                               " on pre-1.1 PCIe device.  You can enable it"
+                               " with 'pcie_aspm=force'\n");
                        return -EINVAL;
                }
        }