From 6f34558542579bf1587a6a968f9bbe3b056332a2 Mon Sep 17 00:00:00 2001 From: Alexander Winkowski Date: Sun, 12 Nov 2023 10:56:47 +0000 Subject: [PATCH] techpack: dataipa: Fix compilation without PCI Change-Id: Ice4284ce6a9b710638c21add2bef5f5bb4e52b63 Signed-off-by: Alexander Winkowski --- .../dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c index 09f5b1cc2fa5..26a86a023acd 100644 --- a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c +++ b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c @@ -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 */ static const struct pci_error_handlers ipa_pci_err_handler = { .error_detected = ipa_pci_io_error_detected,