Skip to content

Commit

Permalink
spi: imx: remove empty cleanup function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
martin-kaiser authored and broonie committed May 27, 2024
1 parent 5bcbbaf commit 61cabbd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/spi/spi-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 61cabbd

Please sign in to comment.