diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-29 11:50:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-29 12:09:26 +0100 |
commit | d9721ae1493725bb14dcd1a3c19bbb5795e4a42f (patch) | |
tree | c50e7c46d9181aefca4508b83c5fb1c4b0920869 /drivers/spi/spi-gpio.c | |
parent | Linus 3.14-rc1 (diff) | |
download | linux-d9721ae1493725bb14dcd1a3c19bbb5795e4a42f.tar.xz linux-d9721ae1493725bb14dcd1a3c19bbb5795e4a42f.zip |
spi: bitbang: Make spi_bitbang_stop() return void
spi_bitbang_stop() never fails, so make it return void.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r-- | drivers/spi/spi-gpio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 7beeb29472ac..b189b958432b 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -503,13 +503,12 @@ static int spi_gpio_remove(struct platform_device *pdev) { struct spi_gpio *spi_gpio; struct spi_gpio_platform_data *pdata; - int status; spi_gpio = platform_get_drvdata(pdev); pdata = dev_get_platdata(&pdev->dev); /* stop() unregisters child devices too */ - status = spi_bitbang_stop(&spi_gpio->bitbang); + spi_bitbang_stop(&spi_gpio->bitbang); if (SPI_MISO_GPIO != SPI_GPIO_NO_MISO) gpio_free(SPI_MISO_GPIO); @@ -518,7 +517,7 @@ static int spi_gpio_remove(struct platform_device *pdev) gpio_free(SPI_SCK_GPIO); spi_master_put(spi_gpio->bitbang.master); - return status; + return 0; } MODULE_ALIAS("platform:" DRIVER_NAME); |