Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2739989lqz; Wed, 3 Apr 2024 07:19:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWNuG5ySInx38xnRa9qE4f+OvNqbZlTA7n7rhHhoOTok8hOqehXZ9mvlfyU0/0MLFB1/kyNiA7XzQ+xtjZUZxPvdOHIL/r4ndE3IzgXA== X-Google-Smtp-Source: AGHT+IGTK38w37Bz0MNl1wUqqx0u+Q5qPdY5I+ZmS6mgW1vO1a1UH0+w2TthME1hIcGOb2sldJtP X-Received: by 2002:a05:6358:7247:b0:17c:1b9b:bf46 with SMTP id i7-20020a056358724700b0017c1b9bbf46mr19535874rwa.13.1712153939474; Wed, 03 Apr 2024 07:18:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712153939; cv=pass; d=google.com; s=arc-20160816; b=krCrvhIgo/V8JUu5UUWJOJyD2lxyLkTcvYbn2d2yQUSH8cUcceUiADc4TQqHyzXQh8 /W+450z2vocRS6hSs/z8QW5hFsiqrlMlc8/lQ13ri5jgWfRAzel9+2FZu6lvAnrALspT 3ZKBbsGFkQwjhIK1ct1aNAmdlGYlbs0af2AXRHBRXa9tiEVxmcm571JQLxqczTZMnMFV 3+WM6huHj8V5S5NN57uNKsLtynjqqiekNj04SK4GCFRYBJJHrJDtrpRxuJqGdMhBamyE 8j37mkgC2udbW+PItJbhnFgK7Odzws0ks7+MP6ZbBmrIuEuv45of28hIlH88H/LEH2x/ NbNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=BETDSA3lUOn0sAQ76GOdjltAIl8rL8ja5xGlP+sx/I8=; fh=76T5f6Ar/6MlBqou63cZ0MxtrfiIYEY+Y1GbQ04VgWM=; b=Rx8AKPHzNa8pnqxN8i9/Gyq6g9Hf7sP8jOmwD/C+5FtyeNt22TSLZzBBYN7Gnra9S4 98YhzcCezrUBm6n2u0ik0UGu6Mt61deUmTvyVAIOYcnBOCmTV9OYgjfVFR59rokFwJeS 6v1AlpKOOo5JRfzVYIIjiOgSYSF8w0MzjrDMXySQnYxtIFpQPkPE+HMhIFA0qZwVaGuF z25/DjhYBeqKX6gfdHqok/YDpwqQJZV0FFjp3QuvfrEyemdvKvzb07wk+zmYPvvBMtXP JrZO/MAUfAS1Q5SF90zm4q8RnDSqn3WvXpWYr2nr82hwxqPQ62O39v6bqnw2q3QYuMOF dMmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZosLR6WI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r12-20020a632b0c000000b005dc81a16015si12625184pgr.118.2024.04.03.07.18.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 07:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZosLR6WI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BDB828AA09 for ; Wed, 3 Apr 2024 14:18:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C350414A616; Wed, 3 Apr 2024 14:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZosLR6WI" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37A2414A090 for ; Wed, 3 Apr 2024 14:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712153835; cv=none; b=r/+KD2XMVR7LtDCT6gdY8UPZMCesW9pxFVfLLjyrkOuZtPH+pqNoHq8yY3a3FqvyTZ8Gc8psYpqM0Nf1kn+ZNXTPSVUrM6vQAmDuadoWBcbJkSLpcOzWAXjuX1XrvZixKpSeQatPdJkaFwri2ggGgJzBYJbwyiWqeYapeSO4Ows= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712153835; c=relaxed/simple; bh=84zMF8c7ejIeEw/PrFg37PetkFt6D4yoyHa2Q638+x4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=py/n/1srF+wT7DCGZO9xGsKNQMounTecq+MM+j7xxl0pXTNuIUCvNAeXAYe8j3vQETUlVKFyb0FbhVM85UsmcvioJH9qSVddRQdR8NksTdZvRFNZDxLNpiCiKBiZIebwuyixQUJRestxbjdtz1E1wIvGJ8tb5lkAgc3BgUm0SJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZosLR6WI; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso6598315a12.3 for ; Wed, 03 Apr 2024 07:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712153831; x=1712758631; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BETDSA3lUOn0sAQ76GOdjltAIl8rL8ja5xGlP+sx/I8=; b=ZosLR6WIAy6SXFlW0lMMW0Ok7P/+JattGJQD/XcANWO8MIIJJaS1AEZ/N9F84bxRbR GRoF/AOv/xXXM41GneQRlwWUFYl72p9SP/UN1B4rj+pZEk8P1vZdJ9xQ0kYX2/PmVW/e Y0W4uhc1DmGcH+o1iwtOZYdXPObEfeTRUZenwCklxDg0F6tp4ZNZSkGj99oHgfQ1v4YD IunQ1zEbHdqZdY9L481oE7EBP2KHj7UrmWH9KqckC9ikurp0XN+pwvpI2kInlIwRP53S eDjw8/xSRAgvTFdF3rpvZrp4FymvxGDLFgPzNwjQ2mKQ1PlUgx85JWEtVLgwxZlFfBs4 iclw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712153831; x=1712758631; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BETDSA3lUOn0sAQ76GOdjltAIl8rL8ja5xGlP+sx/I8=; b=uH8xyD+FjH1y9WQ9b0a6lIOXSgXLyP/7myGl3YDI2ubllXQAgGP3Rko+1qSSuOqujV xVzI3f20/pHlhqsEUqbNq1/fnbiiyAK4MWe2F4L4eIf38Rr0YANDzxzPOefSPgp+VIzy wudAjXLj4V1brReFVvy09/agRtclQV4RHMnrYDSzFTanQrZJfoE2P2ETemvjkrQsvlMb RBKeGactx4nyktknIDJ3jUGSfu8b5EeZUKQxkOkypOEniI/0A6HzZM7CKud6p/1dGgzb 6kNrnMlZzUvTytM+RfrKaytaoICSyvBSbKv0llk4Ij8taxEw6TXAZAAdIrcsE5sPaC3R n+xQ== X-Forwarded-Encrypted: i=1; AJvYcCU0tyHz4ZrzHI7lFM92izuXGUV+CITKYlAAqobCWyoB5seLiMyUAbTXKBlBwibSCUgxs3dqXu0bEj5WP+NWIlOKjzOgZI2H/QS/W94bqXM= X-Gm-Message-State: AOJu0YyzlQoVhZwhB5S7VXJHmVkEgJL0s2JKqYEwlaTquuH0Ai94nHll OcSwDhz/wC4Dr40MnyULh+1FiY3VciEtwjznftZFXlszNUWmsdrUowi2Lxcmf/4D5fdkCi/o4hX j X-Received: by 2002:a17:907:72c8:b0:a4e:8024:87f6 with SMTP id du8-20020a17090772c800b00a4e802487f6mr5679542ejc.66.1712153831564; Wed, 03 Apr 2024 07:17:11 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id he18-20020a1709073d9200b00a4729f093ecsm7737819ejc.53.2024.04.03.07.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 07:17:11 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 03 Apr 2024 16:16:52 +0200 Subject: [PATCH v2 3/7] wifi: ath10k: sdio: simplify module initialization Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240403-module-owner-sdio-v2-3-ae46d6b955eb@linaro.org> References: <20240403-module-owner-sdio-v2-0-ae46d6b955eb@linaro.org> In-Reply-To: <20240403-module-owner-sdio-v2-0-ae46d6b955eb@linaro.org> To: Ulf Hansson , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Brugger , AngeloGioacchino Del Regno , Kalle Valo , Jeff Johnson , Arend van Spriel , Brian Norris , Francesco Dolcini , =?utf-8?q?J=C3=A9r=C3=B4me_Pouiller?= Cc: linux-mmc@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, Jeff Johnson , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1683; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=84zMF8c7ejIeEw/PrFg37PetkFt6D4yoyHa2Q638+x4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmDWTbyM65zcvlEfiPazS0kbhT4junWR/REE800 uUG+OWmZwSJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZg1k2wAKCRDBN2bmhouD 180pD/47q0AiV5Hxqsie9qNBuzm6JBeut4X6plfgi0CLEaa18s6SlSIYmjyQJrEaIIjiwYkHl9R mNz6kX5GPEbh4BOI/LcKeOxZadJaAlD9TefFcic5Ysxzx5v+3dbYdVHdk+VfEGOd7VfE9/rOAO0 BQTjfDderHaoJePQC4UGkW+gWTgv06CccSq1b0cc3lL1vQFTjPEYPpkXyLErRlj3A1mf+B9tJqU QSG8JFugLbprDi4NOHbNyq5e321sRMMpEfs9rSVsbQ6Dfn3BeXn015N/NfoXYVcfPh0z/su1G67 AoFkVFLW/KLuKCA20mWiAuob85XpRTaefVGaNsYSWOzfN/PBbEzWxuyK6UoCieqUsD+IxQXCNaq 9kfvpAIrEtJsGcMCbIFZ1wY+s+BQpNX0S07dSG4Cjiuel3qY1TwiAx9uwoky9uJ8Qwmb9lNjm61 zXbrVvNFnnE6WPOG/aAF69LkYOdYZ4WCA3n9B/F+GhplQZ4EGvQwWysETP8LwPuz5gDHhiME3Ny M/2ndx82o/bHeg8MbwmGjbxANR+iLNhDqdy06BYjNlYWLn6dctZeAV6hk5IOG2XpY0mpIPXdPXA q6MWuaAs7gMQsmksWyFardD2jh268J9qqV2DrLrlPxACunW82BMYT/aQ8WfxbiFEMl4ZjJJ3uBj mFCcm2iroS8Auzg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B This driver's initialization functions do not perform any custom code, except printing messages. Printing messages on modules loading/unloading is discouraged because it pollutes the dmesg regardless whether user actually has this device. Core kernel code already gives tools to investigate whether module was loaded or not. Drop the printing messages which allows to replace open-coded module_sdio_driver(). Acked-by: Jeff Johnson Acked-by: Kalle Valo Signed-off-by: Krzysztof Kozlowski --- Changes in v2 moved from other patchset to avoid conflicts. --- drivers/net/wireless/ath/ath10k/sdio.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 0ab5433f6cf6..1acb9fba9a8e 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -2671,25 +2671,7 @@ static struct sdio_driver ath10k_sdio_driver = { .pm = ATH10K_SDIO_PM_OPS, }, }; - -static int __init ath10k_sdio_init(void) -{ - int ret; - - ret = sdio_register_driver(&ath10k_sdio_driver); - if (ret) - pr_err("sdio driver registration failed: %d\n", ret); - - return ret; -} - -static void __exit ath10k_sdio_exit(void) -{ - sdio_unregister_driver(&ath10k_sdio_driver); -} - -module_init(ath10k_sdio_init); -module_exit(ath10k_sdio_exit); +module_sdio_driver(ath10k_sdio_driver); MODULE_AUTHOR("Qualcomm Atheros"); MODULE_DESCRIPTION("Driver support for Qualcomm Atheros 802.11ac WLAN SDIO devices"); -- 2.34.1