OSDN Git Service

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)
commit1723c3155f117ee6e00f28fadf6e9eda4fc85806
tree1d185997127f78f6fe4d16363e929978d376a0db
parent7001cab1dabc0b72b2b672ef58a90ab64f5e2343
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: 9b00bc7b901ff672 ("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