From patchwork Tue Apr 2 16:12:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 161632 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1931718jan; Tue, 2 Apr 2019 09:13:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVXgHv213cqTCvdH5Y4tasb9JxtY9Xgv4nuBy4Vc3a6d11qYRO2VwdJ7PmU03Z30RJ9tdb X-Received: by 2002:a63:c118:: with SMTP id w24mr66783226pgf.67.1554221614576; Tue, 02 Apr 2019 09:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221614; cv=none; d=google.com; s=arc-20160816; b=gaG0DN3CD+IJCQIxtK5dphXLebu15S03kW4aA/xdMqlN5/xXr3qMcsBbRWiZZFurrI G4W5U97lmml9xRDUZ113KJUWi39x2WT9NUfoSz+kSJZNo1Q1IKxDAgUYOFA6lzakO+qR oxbNV7WBt55ww1E+sAxFgC93vEF1Bs+WnR1nmV2d7NrTvQHUKNMmg/b9icKR2M5Q0S3w sAjhfTqX440+P2g4NNlPKQse7TJ+rD0geNNdh3puloN8EElRW+1azYFzUo6rr7DzNPOb eiFSfop3J89dd0TdAbOLhU/JgyP+mUEvbpagoysrmznWNjx8BhgdQgKeA3EqxyIhcglJ Nvag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=sM5DuO7BoO8bwUSi7V7hLCJ54rIkdF19j/mFFbs42Qg=; b=yaGVMggkhilBRxMYpUFE2oRlyqBVvv4YoQLQ9Cl42dwWu8p/G7i/YLo2eHh51Hk4bB tzBivVzkq604UV1xQRI4FpwwZlJgsYHMa6pygRQaeK7XztBXxNRqyFYD+tthTMffl1tF x1HO52rs0JJZZJsIpfQwtWn6UbadTUUJmjGreN6Fg/q7g2avyCCwiwtZsBAtLSYtYVLZ B0Uvlh9GalbcWVPhqQFNp6oBQrap41KC1SFX2eAFNSJ4LtX18WKYPOVk3Uz7V3oshdNJ Ubcex8LMBmJ1jRauXbJNbs6u64pC9TjHT1s7NHeqE9R0MBrb5eNoiFx/5RjMuww+KNZ/ 2gow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NlJ+caLw; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si4021926pgx.212.2019.04.02.09.13.34; Tue, 02 Apr 2019 09:13:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NlJ+caLw; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729823AbfDBQNd (ORCPT + 11 others); Tue, 2 Apr 2019 12:13:33 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39725 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729086AbfDBQNc (ORCPT ); Tue, 2 Apr 2019 12:13:32 -0400 Received: by mail-wm1-f67.google.com with SMTP id n25so4460168wmk.4 for ; Tue, 02 Apr 2019 09:13:32 -0700 (PDT) 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=sM5DuO7BoO8bwUSi7V7hLCJ54rIkdF19j/mFFbs42Qg=; b=NlJ+caLw05rQVlBrMZ4YpruY+cDR62RpZb0YT/tqf6xKqrqIKusuVbvwpqeJMQbynC wGo/bK8lQxeaIVeVwlcpKXJEc0kIBtM2BictJ3Nkp+V3QLaZXvjVQbguauc/NLIaVaof xnC/CN2VVWdz3OYJgdJSh8A8me2k9BXhXJNjc7maXtyCaK3MPImHUceT23FuVwBxqeBD 0OENZnYQLPtAQagJPhvjfDXh1iVTzztiWMSnLyqn93yeHkYdSxJvDGAtyFEG9vNocshs iz08l1ytYZHjYc3HqwZqziTbTQzawBOx7q5DWtQrVdwbsMW6EDE5XHphmLn3sDch8Hje tY2w== 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=sM5DuO7BoO8bwUSi7V7hLCJ54rIkdF19j/mFFbs42Qg=; b=uHTNH0a6wlqi7MAGfPZoxQ46o/on0uEUrXTbnS3wnQV6Usz8mzi8J9zk0V/+9UHD4p 8B5SIvewACZzjITWfbDVoGDXhk02ydj5I2sgrFDjoKZdPSLxfdBBuDOCc3B+w7L825kN 2Wt5ahz+IiTSZOfV+ve6CS+ZBOAPnQ5XFsjFtAu2Zj4DleDELdoEf3WZ56imrXsKGKvR FrY6QWLJ33p7Z84Onlll2ctnOQutqgsSNLklU7qpejlFcMJryeEUwr+nTa0VrkYrmTHX jv9UqeFFnu37D/SbQQTvtpT2O+Tuw5EEJEV9c8wowvovSaz/5VsezBvM5JkadRv/OZDz JuZw== X-Gm-Message-State: APjAAAU+2JtplcNcGV7DtEOPodBXnbM9OtpVUKiGmbfFvDfYbeOxTkwd XC/kq2JI3zaFKYvZGJ6a+GQ9HrV5mXKRGQ== X-Received: by 2002:a7b:c155:: with SMTP id z21mr3380438wmi.1.1554221611184; Tue, 02 Apr 2019 09:13:31 -0700 (PDT) Received: from mai.imgcgcw.net (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id a126sm17054999wmh.4.2019.04.02.09.13.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 09:13:30 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] thermal/drivers/core: Remove module unload code Date: Tue, 2 Apr 2019 18:12:45 +0200 Message-Id: <20190402161256.11044-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190402161256.11044-1-daniel.lezcano@linaro.org> References: <20190402161256.11044-1-daniel.lezcano@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Now the thermal core is no longer compiled as a module. Remove the unloading module code and move the unregister function to the __init section. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 6590bb5cb688..28f7ece0e8fe 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -266,7 +266,7 @@ static int __init thermal_register_governors(void) return thermal_gov_power_allocator_register(); } -static void thermal_unregister_governors(void) +static void __init thermal_unregister_governors(void) { thermal_gov_step_wise_unregister(); thermal_gov_fair_share_unregister(); @@ -1563,19 +1563,4 @@ static int __init thermal_init(void) mutex_destroy(&poweroff_lock); return result; } - -static void __exit thermal_exit(void) -{ - unregister_pm_notifier(&thermal_pm_nb); - of_thermal_destroy_zones(); - genetlink_exit(); - class_unregister(&thermal_class); - thermal_unregister_governors(); - ida_destroy(&thermal_tz_ida); - ida_destroy(&thermal_cdev_ida); - mutex_destroy(&thermal_list_lock); - mutex_destroy(&thermal_governor_lock); -} - fs_initcall(thermal_init); -module_exit(thermal_exit);