From: Rosen Penev <rosenp@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name,
yangshiji66@outlook.com, linux-kernel@vger.kernel.org
Subject: [PATCH] wifi: ath9k: return by of_get_mac_address
Date: Mon, 30 Sep 2024 16:04:25 -0700 [thread overview]
Message-ID: <20240930230425.369534-1-rosenp@gmail.com> (raw)
It can return -EPROBE_DEFER when using NVMEM. return it so that it gets
forwarded to _init.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/net/wireless/ath/ath9k/init.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index f9e77c4624d9..8924d49fd8b5 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -647,9 +647,7 @@ static int ath9k_of_init(struct ath_softc *sc)
ah->ah_flags |= AH_NO_EEP_SWAP;
}
- of_get_mac_address(np, common->macaddr);
-
- return 0;
+ return of_get_mac_address(np, common->macaddr);
}
static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
--
2.46.2
next reply other threads:[~2024-09-30 23:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 23:04 Rosen Penev [this message]
2024-10-01 8:27 ` [PATCH] wifi: ath9k: return by of_get_mac_address Toke Høiland-Jørgensen
2024-10-01 18:49 ` Rosen Penev
2024-10-02 8:51 ` Toke Høiland-Jørgensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240930230425.369534-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@nbd.name \
--cc=toke@toke.dk \
--cc=yangshiji66@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).