remoteproc: Fix potential build issues with SPL remoteproc
authorSuman Anna <s-anna@ti.com>
Fri, 19 Jul 2019 15:27:56 +0000 (10:27 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 24 Jul 2019 18:15:38 +0000 (14:15 -0400)
commit26557d1025eff712a5fd5ff98cfd831727bdd009
treec0eeafbc01192ccf50a0c36836a0aaf6d7d61ed7
parent57a51123f18df0a89aa8ec7521e8e7b1330719dc
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>
include/remoteproc.h