[PATCH V2 3/3] arm: omap3: Make secure_unlock_mem() static

Adam Ford aford173 at gmail.com
Thu Mar 18 13:40:54 CET 2021


secure_unlock_mem() is only used in one file, so make it static
in that file. This
may help with some further optimization in the future.

Signed-off-by: Adam Ford <aford173 at gmail.com>
---
 arch/arm/mach-omap2/omap3/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c
index 41d0d3ef69..a6c3141dbd 100644
--- a/arch/arm/mach-omap2/omap3/board.c
+++ b/arch/arm/mach-omap2/omap3/board.c
@@ -76,7 +76,7 @@ const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
  * Description: Setup security registers for access
  *              (GP Device only)
  *****************************************************************************/
-void secure_unlock_mem(void)
+static void secure_unlock_mem(void)
 {
 	struct pm *pm_rt_ape_base = (struct pm *)PM_RT_APE_BASE_ADDR_ARM;
 	struct pm *pm_gpmc_base = (struct pm *)PM_GPMC_BASE_ADDR_ARM;
-- 
2.25.1



More information about the U-Boot mailing list