diff options
| author | Dan Carpenter <[email protected]> | 2025-04-23 08:23:53 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-04-25 11:22:25 +0000 |
| commit | 4c0fca65d10548f68c040ed49bf1860ce0dda9b9 (patch) | |
| tree | 8e6ae507d06faa06d42d875f40d3cb6b9e6153ac /drivers/fpga/tests/fpga-region-test.c | |
| parent | usb: dwc3: qcom: use modern PM macros (diff) | |
| download | kernel-4c0fca65d10548f68c040ed49bf1860ce0dda9b9.tar.gz kernel-4c0fca65d10548f68c040ed49bf1860ce0dda9b9.zip | |
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 <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Acked-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions
