Message ID | 20180417055215.084ec137@vento.lan (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h index c1aede46718b..0c21fc5b002e 100644 --- a/include/linux/omap-iommu.h +++ b/include/linux/omap-iommu.h @@ -13,7 +13,12 @@ #ifndef _OMAP_IOMMU_H_ #define _OMAP_IOMMU_H_ +#ifdef CONFIG_OMAP_IOMMU extern void omap_iommu_save_ctx(struct device *dev); extern void omap_iommu_restore_ctx(struct device *dev); +#else +static inline void omap_iommu_save_ctx(struct device *dev) {} +static inline void omap_iommu_restore_ctx(struct device *dev) {} +#endif #endif