Skip to content

Commit

Permalink
spi/falcon: Remove hardware prepare and unprepare functions
Browse files Browse the repository at this point in the history
They are completely empty and therefore serve no function.

Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Mark Brown committed Dec 11, 2014
1 parent 0e64703 commit 7f6d62a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/spi/spi-falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,6 @@ static int falcon_sflash_setup(struct spi_device *spi)
return 0;
}

static int falcon_sflash_prepare_xfer(struct spi_master *master)
{
return 0;
}

static int falcon_sflash_unprepare_xfer(struct spi_master *master)
{
return 0;
}

static int falcon_sflash_xfer_one(struct spi_master *master,
struct spi_message *m)
{
Expand Down Expand Up @@ -420,9 +410,7 @@ static int falcon_sflash_probe(struct platform_device *pdev)
master->mode_bits = SPI_MODE_3;
master->flags = SPI_MASTER_HALF_DUPLEX;
master->setup = falcon_sflash_setup;
master->prepare_transfer_hardware = falcon_sflash_prepare_xfer;
master->transfer_one_message = falcon_sflash_xfer_one;
master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer;
master->dev.of_node = pdev->dev.of_node;

ret = devm_spi_register_master(&pdev->dev, master);
Expand Down

0 comments on commit 7f6d62a

Please sign in to comment.