Skip to content

Commit

Permalink
PCI: __FUNCTION__ is gcc-specific, use __func__
Browse files Browse the repository at this point in the history
Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
  • Loading branch information
hharrison authored and Jesse Barnes committed Mar 20, 2009
1 parent 1cc0ca2 commit e496b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ static int pci_save_pcie_state(struct pci_dev *dev)

save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP);
if (!save_state) {
dev_err(&dev->dev, "buffer not found in %s\n", __FUNCTION__);
dev_err(&dev->dev, "buffer not found in %s\n", __func__);
return -ENOMEM;
}
cap = (u16 *)&save_state->data[0];
Expand Down Expand Up @@ -700,7 +700,7 @@ static int pci_save_pcix_state(struct pci_dev *dev)

save_state = pci_find_saved_cap(dev, PCI_CAP_ID_PCIX);
if (!save_state) {
dev_err(&dev->dev, "buffer not found in %s\n", __FUNCTION__);
dev_err(&dev->dev, "buffer not found in %s\n", __func__);
return -ENOMEM;
}

Expand Down

0 comments on commit e496b61

Please sign in to comment.