summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/optee_linuxdriver/armtz/tee_tz_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/optee_linuxdriver/armtz/tee_tz_drv.c b/security/optee_linuxdriver/armtz/tee_tz_drv.c
index fd6e069c2cb0..8a5ad6784820 100644
--- a/security/optee_linuxdriver/armtz/tee_tz_drv.c
+++ b/security/optee_linuxdriver/armtz/tee_tz_drv.c
@@ -1224,8 +1224,6 @@ static int tz_start(struct tee *tee)
BUG_ON(ptee->started);
ptee->started = true;
- rk_set_uart_port(ptee);
-
ret = configure_shm(ptee);
if (ret)
goto exit;
@@ -1372,6 +1370,8 @@ static int tz_tee_probe(struct platform_device *pdev)
if (ret)
goto bail1;
+ rk_set_uart_port(ptee);
+
#ifdef _TEE_DEBUG
pr_debug("- tee=%p, id=%d, iminor=%d\n", tee, tee->id,
tee->miscdev.minor);