]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc: atmel: check rc of devm_gpiod_get_optional()
authorMichael Walle <michael@walle.cc>
Tue, 5 Jul 2022 13:19:50 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:49:33 +0000 (14:49 +0200)
commitbc58da4b4deb36bc628a4a9be057ff16790d0ea8
tree02c371b679431decd8fc8d56d55959ced5b98c70
parent9514ec9d3636bc46551b73e371e9f64ba3261a7e
usb: gadget: udc: atmel: check rc of devm_gpiod_get_optional()

devm_gpiod_get_optional() might still return an error code, esp.
EPROBE_DEFER. Return any errors.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220705131951.1388968-1-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/atmel_usba_udc.c