]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Oct 2018 07:47:05 +0000 (09:47 +0200)
commit26c0bac0c117d9ef59ec22ffd2e66c1d88886267
tree3aa4eb4a41f87468aa55bd27462ccacbcd5ae03c
parentaffb1840c5788a7d84d551515c9f923e32c4cee7
spi: gpio: Fix copy-and-paste error

[ Upstream commit 1723c3155f117ee6e00f28fadf6e9eda4fc85806 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-gpio.c