diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-05 10:54:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-20 10:47:33 -0400 |
commit | c7f1770f369ae0ec632b3ddc2bd6677b0e485128 (patch) | |
tree | 63c72e5b5d2b4a721161a737ccf4b8f4adff12bb /include/linux/omap-iommu.h | |
parent | 2e1cd38dc3ccd7b8721e1e03160012b56f1e6042 (diff) | |
download | lwn-c7f1770f369ae0ec632b3ddc2bd6677b0e485128.tar.gz lwn-c7f1770f369ae0ec632b3ddc2bd6677b0e485128.zip |
media: omap: omap-iommu.h: allow building drivers with COMPILE_TEST
Drivers that depend on omap-iommu.h (currently, just omap3isp)
need a stub implementation in order to be built with COMPILE_TEST.
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/linux/omap-iommu.h')
-rw-r--r-- | include/linux/omap-iommu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h index c1aede46718b..ce1b7c6283ee 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 |