summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8ee97c)
raw | patch | inline | side by side (parent: b8ee97c)
author | Suman Anna <s-anna@ti.com> | |
Mon, 11 Mar 2019 23:18:12 +0000 (18:18 -0500) | ||
committer | Suman 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>
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 | patch | blob | history |
index 5b66325bc63c1ccccb4b13f1c43ee30272b13546..d9eb8ccf93a649dc9b30948908ea10541517d0f4 100644 (file)
#ifndef _OMAP_IOMMU_H_
#define _OMAP_IOMMU_H_
+#include <linux/errno.h>
+
struct iommu_domain;
#ifdef CONFIG_OMAP_IOMMU
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