diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-04-23 11:23:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-25 13:22:25 +0200 |
commit | 4c0fca65d10548f68c040ed49bf1860ce0dda9b9 (patch) | |
tree | 8e6ae507d06faa06d42d875f40d3cb6b9e6153ac /scripts/generate_rust_analyzer.py | |
parent | 45ebb7baf2356c3d9118c40216ad5b3d0d516b15 (diff) |
usb: dwc3: qcom: Fix error handling in probe
There are two issues:
1) Return -EINVAL if platform_get_resource() fails. Don't return
success.
2) The devm_ioremap() function doesn't return error pointers, it returns
NULL. Update the check.
Fixes: 1881a32fe14d ("usb: dwc3: qcom: Transition to flattened model")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/aAijmfAph0FlTqg6@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions