summaryrefslogtreecommitdiffstats
path: root/drivers/tee
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2020-09-13 20:16:39 +0200
committerOlof Johansson <olof@lixom.net>2020-09-13 20:16:40 +0200
commit0bd1937ad844597442a967fdced04c4ce40570b6 (patch)
tree240d0653f7a40398f09d17a3f2c61e4e54fdd046 /drivers/tee
parentMerge tag 'tee-pin-user-pages-for-5.10' of git://git.linaro.org/people/jens.w... (diff)
parentdrivers: optee: fix i2c build issue (diff)
downloadlinux-0bd1937ad844597442a967fdced04c4ce40570b6.tar.xz
linux-0bd1937ad844597442a967fdced04c4ce40570b6.zip
Merge tag 'optee-i2c-fix-for-v5.10' of git://git.linaro.org:/people/jens.wiklander/linux-tee into arm/drivers
Make sure I2C functions used in OP-TEE are reachable with IS_REACHABLE() * tag 'optee-i2c-fix-for-v5.10' of git://git.linaro.org:/people/jens.wiklander/linux-tee: drivers: optee: fix i2c build issue Link: https://lore.kernel.org/r/20200901101806.GA3286324@jade Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/optee/rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/rpc.c b/drivers/tee/optee/rpc.c
index 64a206c56264..1e3614e4798f 100644
--- a/drivers/tee/optee/rpc.c
+++ b/drivers/tee/optee/rpc.c
@@ -50,7 +50,7 @@ bad:
arg->ret = TEEC_ERROR_BAD_PARAMETERS;
}
-#if IS_ENABLED(CONFIG_I2C)
+#if IS_REACHABLE(CONFIG_I2C)
static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx,
struct optee_msg_arg *arg)
{