PCI: __FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Родитель
1cc0ca26c5
Коммит
e496b617b4
|
@ -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);
|
save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP);
|
||||||
if (!save_state) {
|
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;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
cap = (u16 *)&save_state->data[0];
|
cap = (u16 *)&save_state->data[0];
|
||||||
|
@ -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);
|
save_state = pci_find_saved_cap(dev, PCI_CAP_ID_PCIX);
|
||||||
if (!save_state) {
|
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;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче