From patchwork Thu Apr 11 23:21:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10897063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E850922 for ; Thu, 11 Apr 2019 23:23:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22EE428B02 for ; Thu, 11 Apr 2019 23:23:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1742328E1E; Thu, 11 Apr 2019 23:23:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BAEF928B02 for ; Thu, 11 Apr 2019 23:23:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lbNjgiTdLfShoZnI4tLrk+fbbKTJfc0sQWPkGvgvyYI=; b=jYi3HHIwgWbdx+ IkLTDNhMcaUD5y9JXXEKfwRLbOEpFpGjtcQpPcr/oXyniopcn8VUyCVwq7Pz5KQYmQtTMX6cGW9Ju tde0VkhkExcxtlasxwSVWwcVQ8W9IS/DBrTUY+fBcQJjJP9ds/BGayzbpamNhSO0QMNdg1IqQlmUu EIi04hxjFuxpB0eunWD+1XhlGaaVh0idYUUlGXxm9W9Q4wkwafpFAXLVtngOVkeksQV64ycS9sIVC 4ydz0lLC/rjD/z7mna9vrG5MQTRF3I5HCPixS44y6AjX7L1x8exVtBznCIYIMsFuSczbbOnOXCryJ yZMkQeBeA0W6ZifGMUCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEj23-0006Nk-Sc; Thu, 11 Apr 2019 23:22:59 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEj1u-0006Cw-Ex for linux-rockchip@lists.infradead.org; Thu, 11 Apr 2019 23:22:52 +0000 Received: by mail-pf1-x444.google.com with SMTP id 10so4177780pfo.5 for ; Thu, 11 Apr 2019 16:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8FKJf/NaqYGyiUvGYru2/2r1FkwEHrLbQS3N/eYB4lI=; b=KS/NfPl8RJldrt8mNhy3MbR0s3XVMRoY1JtQVPa2H5JgXYDmX2Gj5reoKqtC6MPJZo MnntIAMLm0VT6DvXWGY+7IVnisZGpq5PMZB0pjigiJOn5VyXVfCaQap5sZgNyAFp0Wkz N7b4JoVpM4Onl7eGHR3DySurhjWIo/rJxSGrY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8FKJf/NaqYGyiUvGYru2/2r1FkwEHrLbQS3N/eYB4lI=; b=sOuK5PDH7f4kr5PiCmzEBhKxagnToMypTX2vt2bhJih46UWq20HP7aNIvE6TodBMN8 wTMjdtYhrDXxTx04mtMh5iHIAUtQd+jdadKx2x+8mrUIPV6TQg0KQvWQ835Sh+hzLGQz ua1Z31QzbjxDxyYeNxht0H4A8/p5x7ICNqatxL3vsoNRLsd1SDT7E8GfaZv7TsREpjqu NIc2ftpYSQKSDvoAy5AaauFkqipeUKPG06dnvb2HL5h1bOxvCou51+pwJBXbq/YsGR2/ Fhvl+d6LWivsldNNw09j6eqZrF6wp2z9fB38g62rdcj2AZ6WzuboU57Mr5UUExecPjIw da0w== X-Gm-Message-State: APjAAAVkfyd4CLV/uADgZBNp9gjn4tm50bfamXRag4GY2K8u7k3r3Je2 6x6os3H92Uo2sJR1ovmeq3tA/A== X-Google-Smtp-Source: APXvYqzF6EMcdmnX13ucI/Kyu+YMU4DSuvUyYP7dA+WAWkBpVu3DEO/SrCvvL0Esyk6oCZIVsOY/ZQ== X-Received: by 2002:a63:c302:: with SMTP id c2mr50588843pgd.235.1555024969853; Thu, 11 Apr 2019 16:22:49 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id y20sm37288903pfe.188.2019.04.11.16.22.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 16:22:49 -0700 (PDT) From: Douglas Anderson To: Heiko Stuebner , Elaine Zhang Subject: [PATCH 2/5] ARM: rockchip: pm: Mark init functions __init Date: Thu, 11 Apr 2019 16:21:54 -0700 Message-Id: <20190411232157.55125-2-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190411232157.55125-1-dianders@chromium.org> References: <20190411232157.55125-1-dianders@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_162250_497564_6E3F54F8 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: briannorris@chromium.org, amstan@chromium.org, linux-kernel@vger.kernel.org, dbasehore@chromium.org, Douglas Anderson , Russell King , linux-rockchip@lists.infradead.org, mka@chromium.org, ryandcase@chromium.org, Chris Zhong , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The functions rk3288_config_bootdata() and rk3288_suspend_init() are only called in the context of rockchip_suspend_init() which is already marked __init. We can mark them __init too. Signed-off-by: Douglas Anderson --- arch/arm/mach-rockchip/pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c index 0592534e0b88..065b09e6f1eb 100644 --- a/arch/arm/mach-rockchip/pm.c +++ b/arch/arm/mach-rockchip/pm.c @@ -59,7 +59,7 @@ static inline u32 rk3288_l2_config(void) return l2ctlr; } -static void rk3288_config_bootdata(void) +static void __init rk3288_config_bootdata(void) { rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8); rkpm_bootdata_cpu_code = __pa_symbol(cpu_resume); @@ -230,7 +230,7 @@ static void rk3288_suspend_finish(void) pr_err("%s: Suspend finish failed\n", __func__); } -static int rk3288_suspend_init(struct device_node *np) +static int __init rk3288_suspend_init(struct device_node *np) { struct device_node *sram_np; struct resource res;