]> git.baikalelectronics.ru Git - kernel.git/commit
spi: gpio: Fix copy-and-paste error
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Sep 2018 13:39:30 +0000 (15:39 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 4 Sep 2018 16:21:17 +0000 (17:21 +0100)
commit9f9209f0aa86293ba669c986bf3a2bf69e972fc9
tree1d185997127f78f6fe4d16363e929978d376a0db
parent4a5c059c0cc649897ab00df91d082aabadd8777c
spi: gpio: Fix copy-and-paste error

This fixes an embarrassing copy-and-paste error in the
errorpath of spi_gpio_request(): we were checking the wrong
struct member for error code right after retrieveing the
sck GPIO.

Fixes: 1e07abb3b806425f ("spi: spi-gpio: Rewrite to use GPIO descriptors")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-gpio.c