Message ID | 20230124110057.2.Ic4f8542b0588d7eb4bc6e322d4af3d2064e84ff0@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2324347wrn; Tue, 24 Jan 2023 11:05:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXti6SLI+YayqHaCXAxmQhId1kkqsJgiSEJaw5Q2K7MSEcI0/HBqnfJs9arUUA0aYw5aNrez X-Received: by 2002:a05:6402:1846:b0:49e:ed53:d64a with SMTP id v6-20020a056402184600b0049eed53d64amr17739026edy.27.1674587108693; Tue, 24 Jan 2023 11:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674587108; cv=none; d=google.com; s=arc-20160816; b=B7mBABSKgXdEnIoZdpIV4UPBvTrK8ZLd2NPf2H3+juG0CVIlzR/82u6u5ojpbnwIrB UXZHSHQrCbv9k5/6RWshUs5q1XOd7ZzyXvn2PFw8TOlnlhdHYLPP49PIpvFv8UWplEVw R32McwRjrzY3DY9SbOqYUvUc+v7/T14S6Bqv4HXrAxiQ4bpfWh3HnclqLuwrWOiKFtLN Z4OurTMgK/kvsj26ZbVBAnTdvZzlu18/FHkD5T26FgSz4Wcm+Ddsgi2lck1QtA6Nuh0u dkzIAiQOlP4t1pcj0hj4bax04HZq+4qnXlthmkRVDYrKJ2StwKLMuBY0bZlvO4oaQ/N9 OcEg== 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=50cO/6ZppDTgK/hTEwdsnZtIUmof/i6Am5RFe+y6fDg=; b=o9D6ACs55A8f+/d7YxFrDJZXTvLfQz26imOztuHlZMNF/btddzoEVhyTqRjYDxyvpk UsLk/z5wU5+i82H5VCeGcBtwbFuAOW5Sxmwub17IBZdWb2S3qAB8SLmb5BNNhDFUH4pm 4KebNC4/gJZUC+KC0l4sLPRZZk8Jw6qTB+BNWzWe3aWIU5syDN/ziirUJM36W8S/KL3a pcvsQe4FrIsG/skCu+ipmT9/I4sAECcbXH8AVg/1Ic2aDQLT8F/1kSph5bStYEQdhje5 S9337pe1ZZ6z1AFHOFs6NSGtkptOUVaAdLPm2eB+wk9BPT4ip9/6Rrxw93Gly59xnmv0 HGCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jfE7I7Wv; 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=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020aa7c914000000b0049deaf9d2absi3906233edt.126.2023.01.24.11.04.43; Tue, 24 Jan 2023 11:05:08 -0800 (PST) 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=@chromium.org header.s=google header.b=jfE7I7Wv; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbjAXTBd (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 14:01:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234374AbjAXTBa (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 14:01:30 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 822A94CE61 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 11:01:27 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id n20-20020a17090aab9400b00229ca6a4636so18754953pjq.0 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 11:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=50cO/6ZppDTgK/hTEwdsnZtIUmof/i6Am5RFe+y6fDg=; b=jfE7I7WvzTda77if8o0AnlZyXeVHxwVIDww/9+S2ljpISGdXCqTC5lnP6jAn25+P3s JiEJswbNMHjeomPV9fvhWaP1X+eg4zcs17gt/efjfnNzHMspdGlPF5yq+/Cfg1HOvLg2 Kp5IWDoo6CYqTnsILJ5HtBvSIVzD/oqlSVKFI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=50cO/6ZppDTgK/hTEwdsnZtIUmof/i6Am5RFe+y6fDg=; b=Y1YgNI5XXX9pQjZzlFLwUPjAmlVNfyb0bu+8s9Ii8VSKToeg5HtR+6Wp6aacxmBLvy iusdL3tgBXMolxJ8D5CahN/ZTGvoLW98TScAmNxUXwNzx2UxFRFU/fzDjl8QV6XLb6FD 93iV0EIZpvYUp/JXXIVMLwMI+Dx1s/gjjj7ohVSODhEJaF8Xc+4ceKSG2QHhGwFdXKKZ L7Vs37AwsWhoZRdqOvLKeG6GeeTeZArl72vgyTbgl5p0LHyBkidaghnoSJ+OlSlyARqs u1ZV1CgIgsyoGIBuzSlU31Nk3iWeKLCOEul9YerI6tMhY95w6UANREkEUIwyuNeGCmny F+VQ== X-Gm-Message-State: AO0yUKXG4UdgvKYA/xucWhfgs/4dEcW5OQdZIl/eThz1L2wgzYZuQyBm I7yEMPIvLmLfhk4PIBzyNC6K6A== X-Received: by 2002:a17:903:18f:b0:196:cea:487a with SMTP id z15-20020a170903018f00b001960cea487amr6070801plg.53.1674586886656; Tue, 24 Jan 2023 11:01:26 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:7b28:de8d:ee0:2cd6]) by smtp.gmail.com with ESMTPSA id f10-20020a17090274ca00b001948720f6bdsm2010415plt.98.2023.01.24.11.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 11:01:26 -0800 (PST) From: Douglas Anderson <dianders@chromium.org> To: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Cc: Luis Chamberlain <mcgrof@kernel.org>, Nick Kossifidis <mickflemm@gmail.com>, Youghandhar Chintala <quic_youghand@quicinc.com>, junyuu@chromium.org, Kalle Valo <kvalo@kernel.org>, Jiri Slaby <jirislaby@kernel.org>, Douglas Anderson <dianders@chromium.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 2/2] wifi: ath5k: Use platform_get_irq() to get the interrupt Date: Tue, 24 Jan 2023 11:01:01 -0800 Message-Id: <20230124110057.2.Ic4f8542b0588d7eb4bc6e322d4af3d2064e84ff0@changeid> X-Mailer: git-send-email 2.39.1.405.gd4c25cc71f-goog In-Reply-To: <20230124110057.1.I69cf3d56c97098287fe3a70084ee515098390b70@changeid> References: <20230124110057.1.I69cf3d56c97098287fe3a70084ee515098390b70@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755931852199464491?= X-GMAIL-MSGID: =?utf-8?q?1755931852199464491?= |
Series |
[1/2] wifi: ath11k: Use platform_get_irq() to get the interrupt
|
|
Commit Message
Doug Anderson
Jan. 24, 2023, 7:01 p.m. UTC
For the same reasons talked about in commit 9503a1fc123d ("ath9k: Use
platform_get_irq() to get the interrupt"), we should be using
platform_get_irq() in ath5k. Let's make the switch.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
I'm not setup to actually test this, but I figured that I might as
well go all the way and fix all the instances of the same pattern that
I found in the ath drivers since the old call was actually breaking me
in ath11k. I did at least confirm that the code compiles for me.
If folks would rather not land an untested patch like this, though,
feel free to drop this and just land patch #1 as long as that one
looks OK.
drivers/net/wireless/ath/ath5k/ahb.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c index 2c9cec8b53d9..28a1e5eff204 100644 --- a/drivers/net/wireless/ath/ath5k/ahb.c +++ b/drivers/net/wireless/ath/ath5k/ahb.c @@ -113,15 +113,13 @@ static int ath_ahb_probe(struct platform_device *pdev) goto err_out; } - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); - if (res == NULL) { - dev_err(&pdev->dev, "no IRQ resource found\n"); - ret = -ENXIO; + irq = platform_get_irq(pdev, 0); + if (irq < 0) { + dev_err(&pdev->dev, "no IRQ resource found: %d\n", irq); + ret = irq; goto err_iounmap; } - irq = res->start; - hw = ieee80211_alloc_hw(sizeof(struct ath5k_hw), &ath5k_hw_ops); if (hw == NULL) { dev_err(&pdev->dev, "no memory for ieee80211_hw\n");