OSDN Git Service

USB: bcma: Add a check for devm_gpiod_get
authorChuhong Yuan <hslester96@gmail.com>
Wed, 16 Oct 2019 08:35:32 +0000 (16:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 14:50:38 +0000 (15:50 +0100)
commitf3de5d857bb2362b00e2a8d4bc886cd49dcb66db
treefeaca8302148b97eb9c15199ecceebba8b10923d
parent09e2a8b78cbd628f4f428b76cb3fed64cdfbc657
USB: bcma: Add a check for devm_gpiod_get

bcma_hcd_probe misses a check for devm_gpiod_get and may miss
the error.
Add a check for it and return the error if a failure occurs.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20191016083531.5734-1-hslester96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/bcma-hcd.c