Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1461061yba; Tue, 2 Apr 2019 09:15:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+M0fiDaeNn7ulIhajVq5MsGIknCvuu7j4kBXVodDL9txu1zUItWPrmnKximXfOmnt2vrY X-Received: by 2002:a63:384:: with SMTP id 126mr37915251pgd.341.1554221746501; Tue, 02 Apr 2019 09:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554221746; cv=none; d=google.com; s=arc-20160816; b=GWMn9B3hK5Ja00uKcLnwRqAs6teoNroLsWzYqEbYpEdC9yOnNbfhgrLLtB+PjtG0cK ZJekW+ZMZntUegNge7e1SKyx2moZLpdGb+1brHFEYqKX6us1g48GLwqg2ZOmn3JRAhN/ BSssLJCykoyRcB79ZMo56KcwHlvfXuiG3IUU93irNqmQzVMzM3Yk+tsszJua3WQPAMye KhW7UiccLb7QhfmF91cL98f0sZb+xR7Vka7kg01s/exDIhQzX2Wxh2uXHV+jxNanniIx 7FitsjiK8rsm8BReVfuAlMNN8rPatRx9bsrzLfcz1jRRgEq36JSWQwMCdKggaHMCffR4 t30g== 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=FTIvwEyfJVbQbEYeibWGmD35hy0yfjKWmkr38TsCRJ3RwNMptgwfn2AItopqvQJgLR 543+PwVyo1qtL0gUIcjhgmhuJbQDQPHMxyCSoYMb1GWILpUlCjsXxCph8X+5NmZjXQGb nmW/25By3VZplaPB3V0xjmi1oB3CTeFnh9qR3c2693WMCQHXOM9PNuSNkXiyecP5Fe2T rZXhSGwdfmrUAO1Zu1RyBT6pHcqNgQ/X9K0cKYAN2vwxocO5H2ocfaS10NUtVpp+Pi3a oLEqaXCi/1ONSUinW9ULE+AcrTUaP7bXEyWvLLSFGw3JczpkTChAEyAVfgn973fmvtZ+ /eFQ== 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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 g74si11534713pfd.221.2019.04.02.09.15.30; Tue, 02 Apr 2019 09:15:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730088AbfDBQNe (ORCPT + 99 others); Tue, 2 Apr 2019 12:13:34 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37031 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729384AbfDBQNd (ORCPT ); Tue, 2 Apr 2019 12:13:33 -0400 Received: by mail-wm1-f68.google.com with SMTP id v14so4467082wmf.2 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=kGnhL9X8aPM7pnv4TEZQS16fk59yRdygzkQRubUjTUmRrQ0TRfTy/TuGeoH5kCw73V gNh33uFr5IF2sb9xYxpDslZ9e4ChaDTyPr6GoWESBXAoeP9ZRlSSf9VBAxdwdRG6dMjQ mqpEVyXBmwnHWTyQZv7daKIS0IVhDcAl9lDKGzmS/RYSSsS6ydr68iDSXzIXnRwv2uKC Scltwo6YTaieIaabxaR0RLqnorpEoT7wFGTaMcLT1kOIppQ5L6IoEr4isYReQ761JB2Q HWVA7FfCnCzOzdi3qjfWXiEvk3TY5VgIW6kU9FRwACt4p10vriaKJUOSC4ih4lARJl1v IN/A== X-Gm-Message-State: APjAAAVjzMZ2DDy8G3tM71NO6pJQZmZzHPfBeSLcG/hi7LepudL+EBi+ 8xXZbuLIO8jqR9kWDzRt62ehsg== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.17.1