soundwire: amd: Fix a check for errors in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 27 Jun 2023 05:42:10 +0000 (08:42 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Jul 2023 05:39:07 +0000 (11:09 +0530)
commit7891d0a5ce6f627132d3068ba925cf86f29008b1
tree94bb4a602eba1e0845d4de52d1ba9564194bb125
parentf84d41b2a083b990cbdf70f3b24b6b108b9678ad
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: d8f48fbdfd9a ("soundwire: amd: Add support for AMD Manager driver")
Suggested-by: "Mukunda,Vijendar" <vijendar.mukunda@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/9863b2bf-0de2-4bf8-8f09-fe24dc5c63ff@moroto.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/amd_manager.c