diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-29 18:50:12 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-29 11:09:26 +0000 |
commit | d9721ae1493725bb14dcd1a3c19bbb5795e4a42f (patch) | |
tree | c50e7c46d9181aefca4508b83c5fb1c4b0920869 /drivers/spi/spi-butterfly.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | op-kernel-dev-d9721ae1493725bb14dcd1a3c19bbb5795e4a42f.zip op-kernel-dev-d9721ae1493725bb14dcd1a3c19bbb5795e4a42f.tar.gz |
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-butterfly.c')
-rw-r--r-- | drivers/spi/spi-butterfly.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-butterfly.c b/drivers/spi/spi-butterfly.c index 8081f96..ee4f91c 100644 --- a/drivers/spi/spi-butterfly.c +++ b/drivers/spi/spi-butterfly.c @@ -309,7 +309,6 @@ done: static void butterfly_detach(struct parport *p) { struct butterfly *pp; - int status; /* FIXME this global is ugly ... but, how to quickly get from * the parport to the "struct butterfly" associated with it? @@ -321,7 +320,7 @@ static void butterfly_detach(struct parport *p) butterfly = NULL; /* stop() unregisters child devices too */ - status = spi_bitbang_stop(&pp->bitbang); + spi_bitbang_stop(&pp->bitbang); /* turn off VCC */ parport_write_data(pp->port, 0); |