/* pci_allocate_cap_save_buffers - allocate buffers for saving capabilities @dev: the PCI device  */
void pci_allocate_cap_save_buffers(struct pci_dev *dev)
/* pci_allocate_cap_save_buffers - allocate buffers for saving capabilities @dev: the PCI device  */
void pci_allocate_cap_save_buffers(struct pci_dev *dev)
{
	int error;
	error = pci_add_cap_save_buffer(dev, PCI_CAP_ID_EXP,
					PCI_EXP_SAVE_REGS * sizeof(u16));
	if (error)
		dev_err(&dev->dev,
			"unable to preallocate PCI Express save buffer\n");
	error = pci_add_cap_save_buffer(dev, PCI_CAP_ID_PCIX, sizeof(u16));
	if (error)
		dev_err(&dev->dev,
			"unable to preallocate PCI-X save buffer\n");
}