Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECDBFC433F5 for ; Sat, 5 Mar 2022 14:25:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC60E8141C; Sat, 5 Mar 2022 15:25:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SuAYlPli"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB10481DD0; Sat, 5 Mar 2022 15:25:38 +0100 (CET) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 62E5C80288 for ; Sat, 5 Mar 2022 15:25:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-io1-xd34.google.com with SMTP id d62so12425240iog.13 for ; Sat, 05 Mar 2022 06:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zj8kqL2x4Bx6Yy3hBRJrhTNtT42dBBJTUrBFLxSf+TU=; b=SuAYlPliOP7GIzMEAtxfsdWeZB9qDjUXwvy+jejgus09+Iy3pkY2BM/2JxFqfaxIwU vESrXHHOFfoOBl8/JXx2Zq6B1wAXeA6ArKe6GowRD/673jHfMJpGhJ2ljPw04H6TKXdQ iPR9Ip2WqHwXUW1Sa0tDQyNUSyoVGh9RPSpH+EapGMr8D+CYxuL7zdMb13WYwoQUSZH6 IDuqlWtPZWI/C9iTxb+fALTe7ibeuHInsVyjpOj7ROTU64AhtJYh59M90UBrtsj37WfN G4vClRgSnMwBb+BOFsTyRY6ihSyzu8FzUHEFLY2PLwfiqGE1BdCLT89j/n5K46GnJ1g2 cwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zj8kqL2x4Bx6Yy3hBRJrhTNtT42dBBJTUrBFLxSf+TU=; b=jHWdVFEcs1Z/kYQALwUgedzOFdyTD1U6/FxSxd/SH1vzJ/JF34zrGBllFxC+9OObxt SSJYpjkQI4kEvAS44HvOKCZ2/vY3IJwkmhK3KkFy/OgdYdRNT3GZKqjPFBGouzrK8A5F TyBTj//KSiNQxehFOK+8D6xMWPuqOFXZinektwTJae40GlU0EUgqREMURmw5qXKdaBeq L/xO22P4CWddtqhwECWlIGtX6pCWMAYnma7b6oEwSI/rBO2LTwk429fgiXSuJSSW3aeo 9A3DWlskAQ2Y94BFPRxI+iMeZpTitCmyU5LZ4ciWgusijNfA4eqoDMw5eKNGxbLvbneW 2GKA== X-Gm-Message-State: AOAM532aks7ugq4hoNhdRcnyNZNb9RI1o1fGz467GApsC0rSjGHt5BDt LexzyiuxXI4EYrMJkupRXvU8JIbc6WhofBte X-Google-Smtp-Source: ABdhPJxIl0ysAZOklZKMH0NnEmASfeMgBJtywa4ggRwptTMLvg5c75NAyEEyxLBWhMfnhZp+BfdIEg== X-Received: by 2002:a5d:9bc8:0:b0:645:b6d1:8f3c with SMTP id d8-20020a5d9bc8000000b00645b6d18f3cmr44388ion.66.1646490333481; Sat, 05 Mar 2022 06:25:33 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:b49d:bd05:5c1d:5ea3]) by smtp.gmail.com with ESMTPSA id e5-20020a056e020b2500b002c57c7e5da0sm8098310ilu.88.2022.03.05.06.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Mar 2022 06:25:32 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: trini@konsulko.com, aford@beaconembedded.com, Adam Ford Subject: [PATCH] ARM: mach-omap2: omap3: Make clock functions static Date: Sat, 5 Mar 2022 08:25:23 -0600 Message-Id: <20220305142523.1737957-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean get_osc_clk_speed and get_sys_clkin_sel are only used in one file. Make them static. Tested on OMAP3530, DM3730, AM3517. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-omap2/omap3/clock.c b/arch/arm/mach-omap2/omap3/clock.c index 71f73492c6..13685e0567 100644 --- a/arch/arm/mach-omap2/omap3/clock.c +++ b/arch/arm/mach-omap2/omap3/clock.c @@ -23,7 +23,7 @@ * get_sys_clk_speed() - determine reference oscillator speed * based on known 32kHz clock and gptimer. *****************************************************************************/ -u32 get_osc_clk_speed(void) +static u32 get_osc_clk_speed(void) { u32 start, cstart, cend, cdiff, cdiv, val; struct prcm *prcm_base = (struct prcm *)PRCM_BASE; @@ -90,7 +90,7 @@ u32 get_osc_clk_speed(void) * get_sys_clkin_sel() - returns the sys_clkin_sel field value based on * input oscillator clock frequency. *****************************************************************************/ -void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel) +static void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel) { switch(osc_clk) { case S38_4M: -- 2.34.1