Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp187568rwo; Fri, 21 Jul 2023 10:15:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtBMiR0r8yptpcGhEzoehLFuJdF1itX7ln8+mz4fGgfdIvMYSmSjCcjU4nJvkZDga7zpEL X-Received: by 2002:a17:902:da8d:b0:1bb:29a7:68f5 with SMTP id j13-20020a170902da8d00b001bb29a768f5mr4524021plx.32.1689959727546; Fri, 21 Jul 2023 10:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689959727; cv=none; d=google.com; s=arc-20160816; b=ibn04Tl5xn43/MgUw5P5H4soZ3NYNe78gqUXRZB9afARZBjEppg3oVV0eMa6y6vEBL Enp2a0CR+uqTQ3BhFT1SL5J2ZE+VyCyNu9+ptDmek1WyiUwTwEqX2FMV3C5vE94cRg8D K4G43Ipl3fDzqvXkIpeCVVKDRpOgQDsE/mQcV0nl4T0xXcOz2XuL5Cf6IQZOfaMUV4lu z4x517PM1Oq33G1EybJX/wyfEn0g4HCw8sQmR7i7q0XAwyUdqY3siNG5r/vY7t4CP948 y7zlijpCWcibemONjvekiu8WyaU+YpkNGc8bX2Mflx7AN78rNVynHDNfm9l+82/3N74i c3jA== 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=UqmqLE5R5gh2U5SvUYTjagSvWUQXQRw3rK/aZLRXnh4=; fh=zI/sCjjpFZFpRWFbJrpu9GJ6xSZKd2JacIs4UkYeF5Q=; b=oP4HEC5fea/CgG/9IWDNSstaaTclFEMr623OsjAvIc6ykGRXFE8Yy3q5n8u/w9flEt YpiL3HVzaWDln77FXl/9TJh/Mb0zQ8GaYfSWPIaIxSEifC2t/dMG382ycnabWw6lUMAG rJDPspVFgcbzMUjJY+I3/UiWAolO/sYvSafFwkFgA4c38ePXIhOylE2P+5WaHLOWcUrq y57Y8QzpD67xGUK9lBmYIH6MMKUFmKfOzSjQGAxXj8SDlp3qxG8DouRwwiJRsqAr6NXA sPTurt3JtINlZ38sgXRQTlhNcKuCTJ6EYXr4BBiuc0hvIbNoDlOeaRfDGdI8SviE1bwV POoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mujet7A7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a170902f68800b001b53c722c3fsi3666017plg.597.2023.07.21.10.15.14; Fri, 21 Jul 2023 10:15:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mujet7A7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231343AbjGURAk (ORCPT + 99 others); Fri, 21 Jul 2023 13:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbjGURAY (ORCPT ); Fri, 21 Jul 2023 13:00:24 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F7426A0; Fri, 21 Jul 2023 10:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689958821; x=1721494821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KFTy3k5fjmzvEVapIibfwY9OKXik6UjBLw7ZmKrmWGc=; b=mujet7A7G3cW9RxjpJlxrLBXPxjpvfvbbNyXEUS9B7UDoMPOlJIpwUW3 PcLMSKN73OoIPB1yv2tNMiv4ohaH4J9wbufRWLtqyZedbcAm0fkumTmiZ KWICt0RDZFOSx/mVlxFKuFVDhmdQl4NfbZxQH4BqENv2he2Y5pil368K5 KeD1yFT1w/7CjthkQh1AOSi51025Ke/nNBy9cdVmhGmTQjYv15xBOPI39 eYf2Rp/ToISCDt5xiQdzPbVxtGumbFJevh1phIKmT+nk7MYTcd7Bs7OhE YiNWQgmlckpcCFQFDBgz5QJBBwutxA6c3oeHqXnujyF79eZR8zpavQivx Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="453443965" X-IronPort-AV: E=Sophos;i="6.01,222,1684825200"; d="scan'208";a="453443965" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 10:00:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="675106536" X-IronPort-AV: E=Sophos;i="6.01,222,1684825200"; d="scan'208";a="675106536" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 21 Jul 2023 10:00:18 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 7D2F866C; Fri, 21 Jul 2023 20:00:23 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Nuno Sa Subject: [PATCH v2 7/8] iio: core: Move initcalls closer to the respective calls Date: Fri, 21 Jul 2023 20:00:21 +0300 Message-Id: <20230721170022.3461-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230721170022.3461-1-andriy.shevchenko@linux.intel.com> References: <20230721170022.3461-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Move subsys_initcall() and module_exit() closer to the respective calls. Signed-off-by: Andy Shevchenko Reviewed-by: Nuno Sa --- drivers/iio/industrialio-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index a9b9804097ab..5c9c68d69fc6 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -354,6 +354,7 @@ static int __init iio_init(void) error_nothing: return ret; } +subsys_initcall(iio_init); static void __exit iio_exit(void) { @@ -362,6 +363,7 @@ static void __exit iio_exit(void) bus_unregister(&iio_bus_type); debugfs_remove(iio_debugfs_dentry); } +module_exit(iio_exit); #if defined(CONFIG_DEBUG_FS) static ssize_t iio_debugfs_read_reg(struct file *file, char __user *userbuf, @@ -2118,9 +2120,6 @@ int iio_device_get_current_mode(struct iio_dev *indio_dev) } EXPORT_SYMBOL_GPL(iio_device_get_current_mode); -subsys_initcall(iio_init); -module_exit(iio_exit); - MODULE_AUTHOR("Jonathan Cameron "); MODULE_DESCRIPTION("Industrial I/O core"); MODULE_LICENSE("GPL"); -- 2.40.0.1.gaa8946217a0b