From patchwork Thu Dec 19 22:21:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 11304495 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 880741580 for ; Thu, 19 Dec 2019 22:22:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 653E92465E for ; Thu, 19 Dec 2019 22:22:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FLDJjxsE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727145AbfLSWWL (ORCPT ); Thu, 19 Dec 2019 17:22:11 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39645 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfLSWWK (ORCPT ); Thu, 19 Dec 2019 17:22:10 -0500 Received: by mail-wm1-f68.google.com with SMTP id 20so7158207wmj.4 for ; Thu, 19 Dec 2019 14:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I3Bk5DzXh21LjzbbFrLuxqc/f6SASou8FRBI3bqnTBA=; b=FLDJjxsEJG/wiTxMggZDT57y8zuOsasoO92JVnZnwWfr/G6LW7JICsrf9WSJtkfaTa OW0dfm6aPcCiFoCMDiRypVa+urEjemUEv4DoeeWLt/c6FdGb6FPZCVr/MtAYABVMI8p5 B3kT/1uFHr5fhtMbjAzq/f7DO8bFMw6R0DrgrG1h0LaG5C77lQh8Ov9UZUVJUF/yLPIQ Tgkl21Nw8hNdAADDCX0GaH9cgc+wBucdPnMkcRNyPdQOXvg/pd65vIVtmOjN/e++ZN0q GXChjAXFKsf6y87HxmQgVASAZqEfGA7XWIe9RvYFXF4iZ1wqe2CdEKGElxen2uM9B51/ 0Z1w== 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; bh=I3Bk5DzXh21LjzbbFrLuxqc/f6SASou8FRBI3bqnTBA=; b=eya6b4dq8xA0toowhQTQ91Jta/nkTZFomtl/yJ6/ByWvxmWCP45P1psNRNIUfoUfU5 TfLN2Bs6uUep/zCfMuPGh+vvqNJs7Ddr+es+NOu6ZjrAnXMwUx5sG2EQ38MyDHpNfSos 5lpjkDidops+XB63hJMDIMfqHk6RJDxu1u1TW50dIgg5gscvt6fNvw/2uyloiH1J/svJ xNQx3JKkDS4vlDVOesNqJC/UNlMCDlmTbvvF5sl62vAKPvFuzYXTiGlwGQZAyz0odblK re1u6hwCLe6SkYPXtIA0rCgstmG0REwkQAlPAyV6C8TuUsijH8IuU+idXbRLrxjwNPWr ujAg== X-Gm-Message-State: APjAAAV+q3XqaPpmTa/iQW3IIKwdfDmC/+OXTUqQi6f6QYRiQ68o2Fte ocD3uldRRcnq5CF0FPf6OmYs4g== X-Google-Smtp-Source: APXvYqy8mmcX1je9IxY9DT1Y7bJ6fGzucgqMBmuqlo1zlJQsYhmpzsKJSU4AFCBWodxEGZYN+OnHrA== X-Received: by 2002:a7b:c183:: with SMTP id y3mr12245737wmi.45.1576794127988; Thu, 19 Dec 2019 14:22:07 -0800 (PST) Received: from localhost.localdomain ([2a01:e34:ed2f:f020:58d:4e9b:2833:86c3]) by smtp.gmail.com with ESMTPSA id q68sm8942295wme.14.2019.12.19.14.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 14:22:07 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: Zhang Rui , Eduardo Valentin , Amit Kucheria , linux-pm@vger.kernel.org (open list:THERMAL), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] thermal/drivers/of-thermal: Move the of_thermal_free_zone() to the init section Date: Thu, 19 Dec 2019 23:21:53 +0100 Message-Id: <20191219222154.16100-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191219222154.16100-1-daniel.lezcano@linaro.org> References: <20191219222154.16100-1-daniel.lezcano@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The function of_thermal_free_zone() is only used the initialization function which all belonging to the init section. Move it also to the __init section. Signed-off-by: Daniel Lezcano --- drivers/thermal/of-thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4333cd5f1073..27d5b85eb2ca 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -977,7 +977,7 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) return ERR_PTR(ret); } -static inline void of_thermal_free_zone(struct __thermal_zone *tz) +static __init void of_thermal_free_zone(struct __thermal_zone *tz) { struct __thermal_bind_params *tbp; int i, j;