diff options
| author | Dan Carpenter <[email protected]> | 2024-07-04 10:19:32 -0500 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2024-07-11 12:46:33 +0100 |
| commit | 87e552ad654554be73e62dd43c923bcee215287d (patch) | |
| tree | cbb7b46e78274377959270f55888586aa942c539 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | 4137d94fd8726431b8bf3ab329311c59e80f5530 (diff) | |
leds: flash: leds-qcom-flash: Test the correct variable in init
This code was passing the incorrect pointer to PTR_ERR_OR_ZERO() so it
always returned success. It should have been checking the array element
instead of the array itself.
Fixes: 96a2e242a5dc ("leds: flash: Add driver to support flash LED module in QCOM PMICs")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions