Signed-off-by: Jike Song <albcamus@xxxxxxxxx> --- drivers/pci/pci.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 061d1ee..48f8fd2 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -652,7 +652,7 @@ static int pci_save_pcie_state(struct pci_dev *dev) else found = 1; if (!save_state) { - dev_err(&dev->dev, "out of memory in pci_save_pcie_state\n"); + dev_err(&dev->dev, "out of memory in %s\n", __func__); return -ENOMEM; } cap = (u16 *)&save_state->data[0]; @@ -685,7 +685,6 @@ static void pci_restore_pcie_state(struct pci_dev *dev) pci_write_config_word(dev, pos + PCI_EXP_RTCTL, cap[i++]); } - static int pci_save_pcix_state(struct pci_dev *dev) { int pos, i = 0; @@ -703,7 +702,7 @@ static int pci_save_pcix_state(struct pci_dev *dev) else found = 1; if (!save_state) { - dev_err(&dev->dev, "out of memory in pci_save_pcie_state\n"); + dev_err(&dev->dev, "out of memory in %s\n", __func__); return -ENOMEM; } cap = (u16 *)&save_state->data[0]; @@ -741,7 +740,7 @@ pci_save_state(struct pci_dev *dev) int i; /* XXX: 100% dword access ok here? */ for (i = 0; i < 16; i++) - pci_read_config_dword(dev, i * 4,&dev->saved_config_space[i]); + pci_read_config_dword(dev, i * 4, &dev->saved_config_space[i]); if ((i = pci_save_pcie_state(dev)) != 0) return i; if ((i = pci_save_pcix_state(dev)) != 0) -- 1.6.0.2.GIT -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html