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

Commit 092ffeaf authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

iommu: msm: add msm_iommu_register_notify stub for CONFIG_MSM_IOMMU_V1=n



Drivers using msm_iommu_register_notify currently don't link when
CONFIG_MSM_IOMMU_V1=n.  We may want to implement the notifier for
msm_iommu_v0 in the future, but until then provide a stub to allow
successful compilation and linking of driver using
msm_iommu_register_notify.

Change-Id: I7c8c91ed2e08a4eb473f0b6e3906e9e6d473f1ca
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 8a749c24
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -393,7 +393,15 @@ u32 msm_iommu_get_mair1(void);
u32 msm_iommu_get_prrr(void);
u32 msm_iommu_get_nmrr(void);

/* events for notifiers passed to msm_iommu_register_notify */
#define TLB_SYNC_TIMEOUT 1

#ifdef CONFIG_MSM_IOMMU_V1
void msm_iommu_register_notify(struct notifier_block *nb);
#else
static inline void msm_iommu_register_notify(struct notifier_block *nb)
{
}
#endif

#endif