spi: octeon: Remove empty octeon_spi_nop_transfer_hardware function
authorAxel Lin <axel.lin@ingics.com>
Sun, 11 Aug 2013 15:07:29 +0000 (23:07 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 20 Aug 2013 10:34:07 +0000 (11:34 +0100)
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>
drivers/spi/spi-octeon.c

index ad924a147ea87faabf91d8653b79c9bea9d81dc0..983021a1f9eea51845525d9be15c7306f84d0a7c 100644 (file)
@@ -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);