projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1cd38
)
media: omap: omap-iommu.h: allow building drivers with COMPILE_TEST
author
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 5 Apr 2018 14:54:14 +0000
(10:54 -0400)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 20 Apr 2018 14:47:33 +0000
(10:47 -0400)
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 <
[email protected]
>
Acked-by: Hans Verkuil <
[email protected]
>
Acked-by: Arnd Bergmann <
[email protected]
>
Acked-by: Tony Lindgren <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
include/linux/omap-iommu.h
patch
|
blob
|
history
diff --git
a/include/linux/omap-iommu.h
b/include/linux/omap-iommu.h
index c1aede46718be28bbf36102b20c8de4200942a7a..ce1b7c6283eecdfd1d4d7943a34dd60dd70eb93f 100644
(file)
--- 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