Console: Remove Arm console unregister on suspend
authorAmbroise Vincent <ambroise.vincent@arm.com>
Wed, 24 Apr 2019 09:34:17 +0000 (10:34 +0100)
committerAmbroise Vincent <ambroise.vincent@arm.com>
Wed, 24 Apr 2019 09:50:16 +0000 (10:50 +0100)
Change-Id: Ie649b3c367a93db057eeaee7e83fa3e43f8c2607
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
plat/arm/common/arm_console.c

index 84886b470c9f751898d03aed3d0c2c209ae3e934..580b2ee017d8aa7a6b92526aaaed1554f7e85290 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -80,9 +80,7 @@ void arm_console_runtime_end(void)
 {
        (void)console_flush();
 
-#if MULTI_CONSOLE_API
-       (void)console_unregister(&arm_runtime_console.console);
-#else
+#if !MULTI_CONSOLE_API
        console_uninit();
-#endif /* MULTI_CONSOLE_API */
+#endif /* !MULTI_CONSOLE_API */
 }