summaryrefslogtreecommitdiff
path: root/include/remoteproc.h
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2019-07-19 10:27:56 -0500
committerTom Rini <trini@konsulko.com>2019-07-24 14:15:38 -0400
commit26557d1025eff712a5fd5ff98cfd831727bdd009 (patch)
treec0eeafbc01192ccf50a0c36836a0aaf6d7d61ed7 /include/remoteproc.h
parent57a51123f18df0a89aa8ec7521e8e7b1330719dc (diff)
downloadu-boot-26557d1025eff712a5fd5ff98cfd831727bdd009.tar.gz
remoteproc: Fix potential build issues with SPL remoteproc
The rproc uclass driver can either be built with SPL_REMOTEPROC or REMOTEPROC, but the function prototypes in remoteproc.h are defined only when CONFIG_REMOTEPROC is defined. This can cause build issues in SPL if CONFIG_REMOTEPROC is not selected. Fix this by replacing the existing precompiler macro usage with CONFIG_IS_ENABLED. Fixes: ddf56bc7e3ef ("drivers: Introduce a simplified remoteproc framework") Signed-off-by: Suman Anna <s-anna@ti.com> Reviewed-by: Nishanth Menon <nm@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/remoteproc.h')
-rw-r--r--include/remoteproc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/remoteproc.h b/include/remoteproc.h
index c29c0867bc..4987194905 100644
--- a/include/remoteproc.h
+++ b/include/remoteproc.h
@@ -130,7 +130,7 @@ struct dm_rproc_ops {
/* Accessor */
#define rproc_get_ops(dev) ((struct dm_rproc_ops *)(dev)->driver->ops)
-#ifdef CONFIG_REMOTEPROC
+#if CONFIG_IS_ENABLED(REMOTEPROC)
/**
* rproc_init() - Initialize all bound remote proc devices
* @return 0 if all ok, else appropriate error value.