Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3504101pxb; Mon, 4 Apr 2022 19:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCQIxPzOmIoR0H9a1IZxxfjZdf0Q1znTfW+jMYc07QAPn+p9n4goRr6jcKP/Zsl0wV1osA X-Received: by 2002:a63:f113:0:b0:399:370e:c1d5 with SMTP id f19-20020a63f113000000b00399370ec1d5mr933160pgi.450.1649124368513; Mon, 04 Apr 2022 19:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649124368; cv=none; d=google.com; s=arc-20160816; b=eEfboPCfpqJ5mdaHT3BWkbTnqP6cn9viyhv+2bCU5b7K9RfB9pgf3EPTSpX5VpxRrW ln19bccns/FZpnOqNeiUk0g633/8gSYuq8ykHgfAy5OxfaZjlIj6PUmfgOXPbEohOMbK nzFxVv3AzZDjxpxE/DOPqIrA2U0VMX4f0+7S4t9Uywe8GAWgdxEy3mOYXAISuJL5vzmo H8hSlACAqJbbiy88G93WpKcf6kfa5Q7/WfroBIqyzXnjH8nGoyP4qGVFIMz07NWVRyfh PRhuen9Z4m0mbv1+wmudmTWCqBkN36Fe6f11c400mYDs4B9ggNvzkTfoyPYWnxG7QqI/ 7Fjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8H9WDff2V0whcBx4OOXlWzd8HqNMxJRqX9n6bDccO1g=; b=npFKHrlE6FqUWwUlXMC+cRAZXJsNOONmYSVQQJ7+u2dM8ppmlRVwBc/CPT1Syup1wi 1RJU8vSD/MxNkv8touyYHIDADVBDiwMknl9mHRYsl46dJA72wM5hGzCVPpFufopip7aa K9L7hjmoBpQcNYdBaY7gG2ym2rUHRv+r6Ta6CEhzamkt/FJeQOkLT3hyKwIBXbehypNI dlB7L9EH4QY/9m0FCNqORcnagEmEptjC7JwGCvzW1diet8398j1jbLefqNpHoq6OPp23 p6Xtnhuj2Vcw1FOPk5CZcmWc24lpd8T0KGiSh6Y/z9VR2RLqCdzoYgHfmBj1nAIlt8+c UY4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=nvHqe8IE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id lx12-20020a17090b4b0c00b001caa6143ea5si792282pjb.10.2022.04.04.19.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:06:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=nvHqe8IE; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A472F36B62; Mon, 4 Apr 2022 17:28:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355695AbiDDJ7p (ORCPT + 99 others); Mon, 4 Apr 2022 05:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354905AbiDDJ7V (ORCPT ); Mon, 4 Apr 2022 05:59:21 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3233C3BFB9 for ; Mon, 4 Apr 2022 02:57:26 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 356A722249; Mon, 4 Apr 2022 11:57:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649066244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8H9WDff2V0whcBx4OOXlWzd8HqNMxJRqX9n6bDccO1g=; b=nvHqe8IEY4ITtcVoDHNFdJ8SV5LqTxDgclRU5ap8Vj3p94k4fA789MeXeJkoDwBJZPY3wb 5or2MDkzUCpYeqms9j2ZCqwGuqupHH54JZGfwVSXb6kTnKth0wUDJEGPPUjVJ0b7q2BIPo uLvJs2vK/WCGe09fD+hGe9rnR5MQjWc= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Shawn Guo , Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Dan Carpenter , Michael Walle Subject: [PATCH RESEND v2 2/7] soc: fsl: guts: remove module_exit() and fsl_guts_remove() Date: Mon, 4 Apr 2022 11:56:04 +0200 Message-Id: <20220404095609.3932782-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220404095609.3932782-1-michael@walle.cc> References: <20220404095609.3932782-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver will never be unloaded. Firstly, it is not available as a module, but more importantly, other drivers will depend on this one to apply possible chip errata. Signed-off-by: Michael Walle Acked-by: Arnd Bergmann --- drivers/soc/fsl/guts.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index be18d46c7b0f..0bea43770d51 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -27,7 +27,6 @@ struct fsl_soc_die_attr { static struct guts *guts; static struct soc_device_attribute soc_dev_attr; -static struct soc_device *soc_dev; /* SoC die attribute definition for QorIQ platform */ @@ -138,6 +137,7 @@ static u32 fsl_guts_get_svr(void) static int fsl_guts_probe(struct platform_device *pdev) { struct device_node *root, *np = pdev->dev.of_node; + static struct soc_device *soc_dev; struct device *dev = &pdev->dev; const struct fsl_soc_die_attr *soc_die; const char *machine = NULL; @@ -197,12 +197,6 @@ static int fsl_guts_probe(struct platform_device *pdev) return 0; } -static int fsl_guts_remove(struct platform_device *dev) -{ - soc_device_unregister(soc_dev); - return 0; -} - /* * Table for matching compatible strings, for device tree * guts node, for Freescale QorIQ SOCs. @@ -242,7 +236,6 @@ static struct platform_driver fsl_guts_driver = { .of_match_table = fsl_guts_of_match, }, .probe = fsl_guts_probe, - .remove = fsl_guts_remove, }; static int __init fsl_guts_init(void) @@ -250,9 +243,3 @@ static int __init fsl_guts_init(void) return platform_driver_register(&fsl_guts_driver); } core_initcall(fsl_guts_init); - -static void __exit fsl_guts_exit(void) -{ - platform_driver_unregister(&fsl_guts_driver); -} -module_exit(fsl_guts_exit); -- 2.30.2