aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna2019-03-11 18:18:12 -0500
committerSuman Anna2019-03-11 19:02:09 -0500
commita5585f02e9bd068ee7fb8b460e45b0b98684d60a (patch)
tree72eebc0de75666be8b4c5e9c8465376f0f421f36
parentb8ee97c59fb1bfc68e4c4a9ea2eda91dd70ef830 (diff)
downloadremoteproc-a5585f02e9bd068ee7fb8b460e45b0b98684d60a.tar.gz
remoteproc-a5585f02e9bd068ee7fb8b460e45b0b98684d60a.tar.xz
remoteproc-a5585f02e9bd068ee7fb8b460e45b0b98684d60a.zip
iommu/omap: Fix a typo in the public omap-iommu.h file
The commit b8ee97c59fb1 ("iommu/omap: introduce new API for runtime suspend/resume control") has introduced two new functions omap_iommu_domain_deactivate() & omap_iommu_domain_activate(), and has also added their stubs to allow COMPILE_TEST of consumer drivers using this header file. The return values in these stubs used a wrong error value of ENOTSUP instead of ENOTSUPP. Fix this typo. While at this, include the errno header file that defines this macro as well to make the omap-iommu.h self-contained. Fixes: b8ee97c59fb1 ("iommu/omap: introduce new API for runtime suspend/resume control") Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r--include/linux/omap-iommu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h
index 5b66325bc63c..d9eb8ccf93a6 100644
--- a/include/linux/omap-iommu.h
+++ b/include/linux/omap-iommu.h
@@ -13,6 +13,8 @@
13#ifndef _OMAP_IOMMU_H_ 13#ifndef _OMAP_IOMMU_H_
14#define _OMAP_IOMMU_H_ 14#define _OMAP_IOMMU_H_
15 15
16#include <linux/errno.h>
17
16struct iommu_domain; 18struct iommu_domain;
17 19
18#ifdef CONFIG_OMAP_IOMMU 20#ifdef CONFIG_OMAP_IOMMU
@@ -27,12 +29,12 @@ static inline void omap_iommu_restore_ctx(struct device *dev) {}
27 29
28static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain) 30static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
29{ 31{
30 return -ENOTSUP; 32 return -ENOTSUPP;
31} 33}
32 34
33static inline int omap_iommu_domain_activate(struct iommu_domain *domain) 35static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
34{ 36{
35 return -ENOTSUP; 37 return -ENOTSUPP;
36} 38}
37#endif 39#endif
38 40