techpack: dataipa: Fix compilation without PCI

Change-Id: Ice4284ce6a9b710638c21add2bef5f5bb4e52b63
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
Alexander Winkowski 2023-11-12 10:56:47 +00:00 committed by Giovanni Ricca
parent 44bbb9790b
commit 6f34558542
No known key found for this signature in database

View File

@ -237,6 +237,18 @@ static void ipa_pci_io_resume(struct pci_dev *pci_dev)
{ {
} }
#ifndef CONFIG_PCI
static inline void pci_release_region(struct pci_dev *pci_dev, int bar)
{
}
static inline int pci_request_region(struct pci_dev *pci_dev, int bar,
const char *res_name)
{
return -EINVAL;
}
#endif
/* PCI Error Recovery */ /* PCI Error Recovery */
static const struct pci_error_handlers ipa_pci_err_handler = { static const struct pci_error_handlers ipa_pci_err_handler = {
.error_detected = ipa_pci_io_error_detected, .error_detected = ipa_pci_io_error_detected,