Thread (21 messages) 21 messages, 6 authors, 2017-03-28

Re: [PATCH 5/7] ath9k: of: Use the clk API to get the reference clock rate

From: Rafał Miłecki <zajec5@gmail.com>
Date: 2017-03-13 22:18:08
Also in: linux-wireless, lkml

On 03/13/2017 10:05 PM, Alban wrote:
quoted hunk ↗ jump to hunk
@@ -573,6 +575,12 @@ static int ath9k_of_init(struct ath_softc *sc)

 	ath_dbg(common, CONFIG, "parsing configuration from OF node\n");

+	clk = clk_get(sc->dev, "ref");
+	if (!IS_ERR(clk)) {
+		ah->is_clk_25mhz = (clk_get_rate(clk) == 25000000);
One trivial thing: you don't need these extra braces.

+		clk_put(clk);
+	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help