]> git.ipfire.org Git - thirdparty/linux.git/commit
greybus: gb-beagleplay: remove unneeded calls to devm_gpiod_put()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 24 Jun 2025 13:31:40 +0000 (15:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2025 10:29:37 +0000 (12:29 +0200)
commitbd80e3ccd6e7485218cc47fbee60db43be86977e
treed0f450c33104cd578779d7b90f83344f89ac4503
parent12c409aa1ec2592280a2ddcc66ff8f3c7f7bb171
greybus: gb-beagleplay: remove unneeded calls to devm_gpiod_put()

gb_fw_init() is only called in this driver's probe() and we abort the
probing if it fails. This means that calling devm_gpiod_put() in error
path is not required as devres will already manage the releasing of the
resources when the device is detached.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20250624133140.77980-1-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/gb-beagleplay.c