diff options
| author | Dan Carpenter <[email protected]> | 2023-06-27 05:42:10 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2023-07-13 05:39:07 +0000 |
| commit | 7891d0a5ce6f627132d3068ba925cf86f29008b1 (patch) | |
| tree | 94bb4a602eba1e0845d4de52d1ba9564194bb125 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | soundwire: qcom: update status correctly with mask (diff) | |
| download | kernel-7891d0a5ce6f627132d3068ba925cf86f29008b1.tar.gz kernel-7891d0a5ce6f627132d3068ba925cf86f29008b1.zip | |
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" <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
