mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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: ddf56bc7e3
("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>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user