Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2092695pxb; Wed, 9 Feb 2022 10:39:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4onbP0Ky79i9aFO+zffULC2qZjQk4pR7Hiw+50NH8UpWCxeNWs89QM3mNuYc1Ms5EKwwC X-Received: by 2002:a17:907:c01:: with SMTP id ga1mr3115809ejc.704.1644431976514; Wed, 09 Feb 2022 10:39:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644431976; cv=none; d=google.com; s=arc-20160816; b=Uq4q9/cxZJmDTyG0j0ZBAy6tSwNN3njQRpZOD2Gt/gm0O7l31UUS2EX2B2n8/KGirw LVjDqv627geOhhxNtLSkpc4K9u6tBjcdpl4tX7slM4c9IlKVvnekIRlzQ2LtX3jmZQsY pxV52/rz1XWCpXSqe8DEK3JtwBS5iQ/RNcB7CK6wGSsuAFmbGUJcG+K62Z6mZMTOsgJL 5Bdo+wITcz1oKqEbn5rUKkMof2xgyGq9QRBv/+mHTDssjGE4aIug5SnOlw7PyKZKCtZ4 rjZSgRzFIIv9FIq4+HLG3o/S3+7a6NcrrVInN6YCtI0GrjhSc5rez7LQ7yhXC4di2VzZ MQmg== 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=J+rwROzLlkWa9vZ4BhZ14ZMPDKngM1x7GUNfdqxxRJS7oJ0aE/ht+MC7wy70INFjsi vE2hLx6aPlo5ycdJGD1P0RMFXbuiqPGAv6FAcopVRGxL+krOSvOzzVOx4pk5iIixQrCB M3yAOLgJ6cgMgiyCS2+VfQp2FzA0+1uav4ceKxKZ84K6b/038ng9ax4kwNn4+3gDYUl4 X+A2OsRLVp5sE0ZEGxSpDDlAFa09wDnzPQdgSsMRrW1p9zRF/II61AiuGGzW2+EoBpkS E7FQMQO4QpMTXqVKDlO24SE38yNEfpYDEIXbE9cMGZ1BYiRNnkO6E1O/r9lVHExc7isD 4k7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="miePmVQ/"; 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 js8si11877434ejc.714.2022.02.09.10.39.10; Wed, 09 Feb 2022 10:39:36 -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="miePmVQ/"; 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 S237105AbiBIQdM (ORCPT + 99 others); Wed, 9 Feb 2022 11:33:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237070AbiBIQdH (ORCPT ); Wed, 9 Feb 2022 11:33:07 -0500 X-Greylist: delayed 28937 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 09 Feb 2022 08:33:10 PST Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 554DBC0613C9 for ; Wed, 9 Feb 2022 08:33:08 -0800 (PST) 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 3BECC223ED; Wed, 9 Feb 2022 17:33:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644424387; 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=miePmVQ/1DdQbb6LxDr08xDl2eTqmNKTKv8vg+YXL/XIs/ZuIPJ4TeLT/BC2euibbnNFFj c+57hSU3d+ADUP6sPmKBwbXsXaI8P/ce+actiNXLio0Q3jkse33Hn2CIGHidIap2OrhOtH G2/8srJAysOt9tBm2WFQQboceihTHHs= 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 , Dan Carpenter , Michael Walle Subject: [PATCH v2 2/7] soc: fsl: guts: remove module_exit() and fsl_guts_remove() Date: Wed, 9 Feb 2022 17:32:37 +0100 Message-Id: <20220209163242.430265-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220209163242.430265-1-michael@walle.cc> References: <20220209163242.430265-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --- 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