Skip to content

Commit

Permalink
spi: rspi: Remove empty rspi_cleanup()
Browse files Browse the repository at this point in the history
If spi_master.cleanup() is not needed, it can be left unimplemented.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Feb 23, 2014
1 parent 3d90e43 commit ab98fcb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/spi/spi-rspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,6 @@ static int rspi_setup(struct spi_device *spi)
return 0;
}

static void rspi_cleanup(struct spi_device *spi)
{
}

static u16 qspi_transfer_mode(const struct spi_transfer *xfer)
{
if (xfer->tx_buf)
Expand Down Expand Up @@ -1255,7 +1251,6 @@ static int rspi_probe(struct platform_device *pdev)
master->bus_num = pdev->id;
master->setup = rspi_setup;
master->transfer_one = ops->transfer_one;
master->cleanup = rspi_cleanup;
master->prepare_message = rspi_prepare_message;
master->unprepare_message = rspi_unprepare_message;
master->mode_bits = ops->mode_bits;
Expand Down

0 comments on commit ab98fcb

Please sign in to comment.