summaryrefslogtreecommitdiffstats
path: root/pcidev.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcidev.c')
-rw-r--r--pcidev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcidev.c b/pcidev.c
index e498014..1f9a5cc 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -270,7 +270,7 @@ struct undo_pci_write_data {
};
};
-void undo_pci_write(void *p)
+int undo_pci_write(void *p)
{
struct undo_pci_write_data *data = p;
msg_pdbg("Restoring PCI config space for %02x:%02x:%01x reg 0x%02x\n",
@@ -288,6 +288,7 @@ void undo_pci_write(void *p)
}
/* p was allocated in register_undo_pci_write. */
free(p);
+ return 0;
}
#define register_undo_pci_write(a, b, c) \
OpenPOWER on IntegriCloud