Commit 4703416d authored by Dan Carpenter's avatar Dan Carpenter Committed by Jeff Johnson
Browse files

wifi: ath12k: Fix a couple NULL vs IS_ERR() bugs



The devm_memremap() function returns error pointers on error and the
ioremap() function returns NULL on error.  The error checking here got
those flipped around.

Fixes: c01d5cc9 ("wifi: ath12k: Power up userPD")
Fixes: 6cee30f0 ("wifi: ath12k: add AHB driver support for IPQ5332")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarVasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/937abc74-9648-4c05-a2c3-8db408b3ed9e@stanley.mountain


Signed-off-by: default avatarJeff Johnson <jeff.johnson@oss.qualcomm.com>
parent d118047f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment