Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a60a17b authored by Praveen Kurapati's avatar Praveen Kurapati
Browse files

msm: ipa4: Fix to compilation errors if CONFIG_PCI disabled



Add changes to overcome compilation errors when CONFIG_PCI
is disabled.

Change-Id: I1b1fa4a2deb2689401c95cffad7ebc699797f95b
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent fbdf1866
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3108,6 +3108,7 @@ static const struct of_device_id ipa_plat_drv_match[] = {
/*                PCIe Version                           */
/*********************************************************/

#ifdef CONFIG_PCI
static const struct of_device_id ipa_pci_drv_match[] = {
	{ .compatible = "qcom,ipa", },
	{}
@@ -3154,6 +3155,7 @@ static struct pci_driver ipa_pci_driver = {
	.shutdown = ipa_pci_shutdown,
	.err_handler = &ipa_pci_err_handler
};
#endif

static int ipa_generic_plat_drv_probe(struct platform_device *pdev_p)
{
@@ -3755,6 +3757,7 @@ static struct platform_driver ipa_plat_drv = {
/*                PCIe Version                           */
/*********************************************************/

#ifdef CONFIG_PCI
static int ipa_pci_probe(
	struct pci_dev             *pci_dev,
	const struct pci_device_id *ent)
@@ -3822,15 +3825,17 @@ static pci_ers_result_t ipa_pci_io_slot_reset(struct pci_dev *pci_dev)
static void ipa_pci_io_resume(struct pci_dev *pci_dev)
{
}
#endif

static int __init ipa_module_init(void)
{
	pr_debug("IPA module init\n");

#ifdef CONFIG_PCI
	if (running_emulation) {
		/* Register as a PCI device driver */
		return pci_register_driver(&ipa_pci_driver);
	}
#endif
	/* Register as a platform device driver */
	return platform_driver_register(&ipa_plat_drv);
}
+2 −0
Original line number Diff line number Diff line
@@ -8494,6 +8494,7 @@ void ipa_pc_qmp_enable(void)
 *            PCIe Version
 *************************************************************/

#ifdef CONFIG_PCI
int ipa3_pci_drv_probe(
	struct pci_dev            *pci_dev,
	struct ipa_api_controller *api_ctrl,
@@ -8653,6 +8654,7 @@ int ipa3_pci_drv_probe(

	return result;
}
#endif

/*
 * The following returns transport register memory location and