spi: imx: remove empty cleanup function
authorMartin Kaiser <martin@kaiser.cx>
Mon, 20 May 2024 16:59:06 +0000 (18:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:33:38 +0000 (01:33 +0100)
Remove the empty spi_imx_cleanup function.

It's ok if a driver does not set the controller->cleanup pointer, the
caller does a NULL check.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://msgid.link/r/20240520165906.164906-1-martin@kaiser.cx
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c

index f4006c82f867a6f5bb52a23b106e08b0e09486e1..cf0cb52946d2247ecc468a397035a62b197e8953 100644 (file)
@@ -1666,10 +1666,6 @@ static int spi_imx_setup(struct spi_device *spi)
        return 0;
 }
 
-static void spi_imx_cleanup(struct spi_device *spi)
-{
-}
-
 static int
 spi_imx_prepare_message(struct spi_controller *controller, struct spi_message *msg)
 {
@@ -1766,7 +1762,6 @@ static int spi_imx_probe(struct platform_device *pdev)
 
        controller->transfer_one = spi_imx_transfer_one;
        controller->setup = spi_imx_setup;
-       controller->cleanup = spi_imx_cleanup;
        controller->prepare_message = spi_imx_prepare_message;
        controller->unprepare_message = spi_imx_unprepare_message;
        controller->target_abort = spi_imx_target_abort;