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

Commit fdcb9891 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

msm: iommu: add stubs for convenience domain-finding functions



Recently, some convenience functions were added for working with domains
on MSM platforms [8bef2bfc: "msm: iommu: add some more convenience
domain-finding functions"]. However, on platforms where CONFIG_MSM_IOMMU
is not enabled those functions are never defined. Fix this by adding
stubs.

Change-Id: Ia70e3ceacc515d00ed8698a05907f5bc8db8cdc6
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 1bd946f4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -215,6 +215,16 @@ static inline int msm_unregister_domain(struct iommu_domain *domain)
{
	return -ENODEV;
}

static inline struct iommu_domain *msm_iommu_domain_find(const char *name)
{
	return NULL;
}

static inline int msm_iommu_domain_no_find(const char *name)
{
	return -ENODEV;
}
#endif

#endif