diff options
| author | 2026-06-18 11:34:39 +0000 | |
|---|---|---|
| committer | 2026-07-07 11:20:00 +0200 | |
| commit | 3d2718e3b10d2409573520165fbd39ea4b01f279 (patch) | |
| tree | e5d71f99fd1badd56a3f9f97c9083151c12d1083 /scripts/Makefile.thinlto | |
| parent | staging: greybus: power_supply: remove unnecessary parentheses in return (diff) | |
staging: greybus: vibrator: return device_create() errors
gb_vibrator_probe() maps any device_create() failure to -EINVAL. This
loses the real errno returned by the driver core, such as -ENOMEM, and
makes probe failures harder to diagnose correctly.
Return PTR_ERR(dev) instead so callers receive the actual failure reason
while preserving the existing cleanup path.
Signed-off-by: Alfie Varghese <alfievarghese22@gmail.com>
Link: https://patch.msgid.link/20260618113439.569-1-alfievarghese22@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
