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: 10897065 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 CA544922 for ; Thu, 11 Apr 2019 23:23:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFC1728E1D for ; Thu, 11 Apr 2019 23:23:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3A2928E20; Thu, 11 Apr 2019 23:23:12 +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 487F828E1D for ; Thu, 11 Apr 2019 23:23:12 +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=2SC8CjMZgUXiXt5ebfwiIIYuCXIdcXfzb2yAj66ZddM=; b=PJlwy//i5lOErY rnnx724tawAF1uZwWu9Y4a9rT8Qo/XBPckfl2m/IUCpb8vKfJmDOpEmffQbwjQm2hYtt17FE2oM+x bPVteOSKcW/Y7eQnJRdXGjkgam17H0pMT40DfH+zBR4+fqa94HF43tCRfEoXcx06j3MVPhT8H5UWf KyPJmDNnhcu22Y5W178YcvFno1J9/8c6ZUxLyJ1+da4CTfuBP9XOlankVnUlurKrtZ2ZICD+aNCwX bJkHVB+KkVHaz+EhOTs2sspZg/KDFpwh/t74PrNz8Jniqgii9bYD5vdx4MK2PRzUfrv5v5ERFsyWm DOe7SDZPo821dnEcngBQ==; 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 1hEj2A-0006W1-6x; Thu, 11 Apr 2019 23:23:06 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEj1u-0006Cx-K2 for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2019 23:22:53 +0000 Received: by mail-pg1-x541.google.com with SMTP id q1so4211630pgv.13 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=ODYxdhSXwEhqVX9+Dhu3Ry9rxVFuO6MLVFmJeYU6XL4tu8Fm8ZBp/aUiq7Xn2qeFBf 0pJAVGHWodDgKVK0PFIq2JsULwnBOdNY3SgGuKm/dfLdMvCid3Bhf9AE9gpw+414Ntiq AT3apRM1oH4IY8Fta0Tt9vWmKys5SBanbcO9/bmYM7wq377KeUweV+XdHd57jLLMOVly o26zzXf+3gdO6ZmUZbMIcWBV1NPHkEcIxK6viScSBdHzAgPAPpiPWyDXm+P97n4NDM6o X2SYkxliHdTIl1XdBR7LP38lo9Q4VXiUGqS+aVr5AFzlGR40qi7I6OZjD/NCPXc1gdpA zzDg== X-Gm-Message-State: APjAAAVUwTjSJGUb25PNl1+ulQE5x/13ptDI23bIkeQMYWRLFB6zMSnE kaqL4SibvE9x3z5I7IeF8evasQ== 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_656859_67A7E5F3 X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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;