]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commitdiff
iommu/omap: Fix a typo in the public omap-iommu.h file
authorSuman Anna <s-anna@ti.com>
Mon, 11 Mar 2019 23:18:12 +0000 (18:18 -0500)
committerSuman Anna <s-anna@ti.com>
Tue, 12 Mar 2019 00:02:09 +0000 (19:02 -0500)
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>
include/linux/omap-iommu.h

index 5b66325bc63c1ccccb4b13f1c43ee30272b13546..d9eb8ccf93a649dc9b30948908ea10541517d0f4 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef _OMAP_IOMMU_H_
 #define _OMAP_IOMMU_H_
 
+#include <linux/errno.h>
+
 struct iommu_domain;
 
 #ifdef CONFIG_OMAP_IOMMU
@@ -27,12 +29,12 @@ static inline void omap_iommu_restore_ctx(struct device *dev) {}
 
 static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
 {
-       return -ENOTSUP;
+       return -ENOTSUPP;
 }
 
 static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
 {
-       return -ENOTSUP;
+       return -ENOTSUPP;
 }
 #endif