Commit 7f6d62a2 authored by Mark Brown's avatar Mark Brown

spi/falcon: Remove hardware prepare and unprepare functions

They are completely empty and therefore serve no function.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0e647037
...@@ -353,16 +353,6 @@ static int falcon_sflash_setup(struct spi_device *spi) ...@@ -353,16 +353,6 @@ static int falcon_sflash_setup(struct spi_device *spi)
return 0; 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, static int falcon_sflash_xfer_one(struct spi_master *master,
struct spi_message *m) struct spi_message *m)
{ {
...@@ -420,9 +410,7 @@ static int falcon_sflash_probe(struct platform_device *pdev) ...@@ -420,9 +410,7 @@ static int falcon_sflash_probe(struct platform_device *pdev)
master->mode_bits = SPI_MODE_3; master->mode_bits = SPI_MODE_3;
master->flags = SPI_MASTER_HALF_DUPLEX; master->flags = SPI_MASTER_HALF_DUPLEX;
master->setup = falcon_sflash_setup; master->setup = falcon_sflash_setup;
master->prepare_transfer_hardware = falcon_sflash_prepare_xfer;
master->transfer_one_message = falcon_sflash_xfer_one; master->transfer_one_message = falcon_sflash_xfer_one;
master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer;
master->dev.of_node = pdev->dev.of_node; master->dev.of_node = pdev->dev.of_node;
ret = devm_spi_register_master(&pdev->dev, master); ret = devm_spi_register_master(&pdev->dev, master);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment