mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
spi: octeon: Remove empty octeon_spi_nop_transfer_hardware function
Both prepare_transfer_hardware and unprepare_transfer_hardware callbacks are optional, so we don't need to implement an empty function for them. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
e1b18ea809
commit
fe81109b6d
1 changed files with 0 additions and 7 deletions
|
@ -260,11 +260,6 @@ static void octeon_spi_cleanup(struct spi_device *spi)
|
|||
kfree(old_setup);
|
||||
}
|
||||
|
||||
static int octeon_spi_nop_transfer_hardware(struct spi_master *master)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int octeon_spi_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *res_mem;
|
||||
|
@ -304,9 +299,7 @@ static int octeon_spi_probe(struct platform_device *pdev)
|
|||
|
||||
master->setup = octeon_spi_setup;
|
||||
master->cleanup = octeon_spi_cleanup;
|
||||
master->prepare_transfer_hardware = octeon_spi_nop_transfer_hardware;
|
||||
master->transfer_one_message = octeon_spi_transfer_one_message;
|
||||
master->unprepare_transfer_hardware = octeon_spi_nop_transfer_hardware;
|
||||
|
||||
master->dev.of_node = pdev->dev.of_node;
|
||||
err = spi_register_master(master);
|
||||
|
|
Loading…
Reference in a new issue