Skip to content
Commit 7891d0a5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

soundwire: amd: Fix a check for errors in probe()



This code has two problems:
1) The devm_ioremap() function returns NULL, not error pointers.
2) It's checking the wrong variable.  ->mmio instead of ->acp_mmio.

Fixes: d8f48fbd ("soundwire: amd: Add support for AMD Manager driver")
Suggested-by: default avatar"Mukunda,Vijendar" <vijendar.mukunda@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/9863b2bf-0de2-4bf8-8f09-fe24dc5c63ff@moroto.mountain


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent f84d41b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment