summaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-04-05 10:19:10 +0700
committerMark Brown <broonie@kernel.org>2019-04-05 10:19:10 +0700
commite1a7d1673062a6a9160b1fc94e1540b747398e01 (patch)
tree77ed1ca15537d1ae04a6ab0ff6128567c0fa497e /drivers/spi/spi.c
parent9fda6693335cd51b0a74cffaac266c83439f7efe (diff)
parenta026525d4e45e3d9690bffd0b05d018ff5638b5a (diff)
Merge branch 'spi-5.1' into spi-5.2
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index bd2a424672df..2ad20c735b61 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2199,6 +2199,8 @@ static int spi_get_gpio_descs(struct spi_controller *ctlr)
*/
cs[i] = devm_gpiod_get_index_optional(dev, "cs", i,
GPIOD_OUT_LOW);
+ if (IS_ERR(cs[i]))
+ return PTR_ERR(cs[i]);
if (cs[i]) {
/*