]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: fix iris child-node lookup
authorJohan Hovold <johan@kernel.org>
Sat, 11 Nov 2017 17:05:32 +0000 (18:05 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 20 Nov 2017 16:20:41 +0000 (18:20 +0200)
commitfd6bf53cfcc57fb1f7b11fc4418a0c3e033b2b5f
tree20746e4b8774ed8e852c730848ec7578cccc76bf
parent28d51c4d756c55d830e551feb1b2beff795e41f4
wcn36xx: fix iris child-node lookup

Fix child-node lookup during probe, which ended up searching the whole
device tree depth-first starting at the parent rather than just matching
on its children.

To make things worse, the parent mmio node was also prematurely freed.

Fixes: adef2aefda33 ("wcn36xx: Disable 5GHz for wcn3620")
Cc: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/main.c