Skip to content

Commit

Permalink
dmaengine: idma64: Make idma64_remove() return void
Browse files Browse the repository at this point in the history
The function idma64_remove() returns zero unconditionally. Make it
return void.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221014161250.468687-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and Vinod Koul committed Oct 19, 2022
1 parent 042427e commit c3b6338
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/dma/idma64.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static int idma64_probe(struct idma64_chip *chip)
return 0;
}

static int idma64_remove(struct idma64_chip *chip)
static void idma64_remove(struct idma64_chip *chip)
{
struct idma64 *idma64 = chip->idma64;
unsigned short i;
Expand All @@ -618,8 +618,6 @@ static int idma64_remove(struct idma64_chip *chip)

tasklet_kill(&idma64c->vchan.task);
}

return 0;
}

/* ---------------------------------------------------------------------- */
Expand Down Expand Up @@ -664,7 +662,9 @@ static int idma64_platform_remove(struct platform_device *pdev)
{
struct idma64_chip *chip = platform_get_drvdata(pdev);

return idma64_remove(chip);
idma64_remove(chip);

return 0;
}

static int __maybe_unused idma64_pm_suspend(struct device *dev)
Expand Down

0 comments on commit c3b6338

Please sign in to comment.