Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp430912pxb; Fri, 28 Jan 2022 02:18:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrlI4UND94ukPZXGpD6sV//7ThZkIrPXGd0JCqx7KgDKNz0LdKJs629cDjh8PF/d1PDWt8 X-Received: by 2002:a17:902:ced2:: with SMTP id d18mr7863737plg.21.1643365112808; Fri, 28 Jan 2022 02:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365112; cv=none; d=google.com; s=arc-20160816; b=vktyS5Q1qAzf/+xpF+1XcpX7S4dvglzmkqc/+n0TctSA/ZHslNW93uO3A69OSfUNFp z3NeregCMW56+TTshLDH57ACelwjr+OCUGCcEzsuJVbmujJc8LdYoP03xzH/IkVOaUUS 98ErPLdJ5+WM2CWnEJsCtHrj1JkSBnsDco9fstEDZZE32pCTkVUEaha/V4uxJT2e/32i VHoztCGu1EZjrU5xmyJM6ctWo67Jvl8iJm9fgso2fxQfDsk5lCMkTwYmC54BfRbrDCFn vZl48Y68xiHG+YNQLOAZLZR0ss3H9witHdZxDnwGFkja1GNeliaFiowMntwfJv9dTSfu sAew== 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=JP6sEk8Ye9HSeLSodsUhxvuoScwCGtEWcY67WHVPIzw=; b=zhaeYW7fy+4WjqUcQQGRhfqJOBfUy9wJ4TKiZcxh9fMii4E834Of2JE0Ta0tXk2//o WIItyv9A2GkM1+Ccw4q843B2gMQY5C8jryaZ7G5hK5pkNhx1r0UOYeOrvZhaczrrkU5a iS+OmGE2Rczdu+uE0awQSMgv3aT90z9sMkYO4aiFPwanuRs9cM8uSWFmpo4dDgat/L48 iaB/1l45qiD+Q9fifxo085SpDGJg7iHTeF3cJOQk4TA6as03HsOwSZapZHa8q2Qrupup x+rho1upe7IrKzrRyXeo3lF6hZL57gAAtJGqwZHgh9+hc8BMMkclKMdi13xbdYnLSlR0 BjXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="gg/AYMIT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si3480592pfu.181.2022.01.28.02.18.21; Fri, 28 Jan 2022 02:18:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="gg/AYMIT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243920AbiA0Qlo (ORCPT + 99 others); Thu, 27 Jan 2022 11:41:44 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:40533 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243892AbiA0Qlk (ORCPT ); Thu, 27 Jan 2022 11:41:40 -0500 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 96E26223ED; Thu, 27 Jan 2022 17:41:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1643301699; 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=JP6sEk8Ye9HSeLSodsUhxvuoScwCGtEWcY67WHVPIzw=; b=gg/AYMITFtXTOXwGMvplrT62MpkMZs69bIJf3dH+WEkvj0OZ3DJMitBXVeXcwUXpTGl00j R7fVoWsFOPymql+9H/OE0Isea4jtgm1ILO3ua7NeQxHnKk85R6SP5S18LnUEUGZuib1lI2 I+NbFBdTwgqtudtW7nycjijAg20Cb+Y= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Li Yang , Ulf Hansson , Sudeep Holla , Arnd Bergmann , Michael Walle Subject: [PATCH v1 2/7] soc: fsl: guts: remove module_exit() and fsl_guts_remove() Date: Thu, 27 Jan 2022 17:41:20 +0100 Message-Id: <20220127164125.3651285-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220127164125.3651285-1-michael@walle.cc> References: <20220127164125.3651285-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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