Skip to content

Commit e59f646

Browse files
claudiubezneaduraikvddp
authored andcommitted
spi: atmel-quadspi: remove references to runtime PM on error path
There is no need to call runtime PM put APIs on error path of atmel_qspi_sama7g5_transfer() as the caller of it will take care of this if needed. Fixes: 16a72d7 ("spi: atmel-quadspi: Add support for sama7g5 QSPI") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent 1a6273c commit e59f646

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,8 @@ static int atmel_qspi_sama7g5_transfer(struct spi_mem *mem,
920920

921921
/* Release the chip-select. */
922922
ret = atmel_qspi_reg_sync(aq);
923-
if (ret) {
924-
pm_runtime_mark_last_busy(&aq->pdev->dev);
925-
pm_runtime_put_autosuspend(&aq->pdev->dev);
923+
if (ret)
926924
return ret;
927-
}
928925
atmel_qspi_write(QSPI_CR_LASTXFER, aq, QSPI_CR);
929926

930927
return atmel_qspi_wait_for_completion(aq, QSPI_SR_CSRA);

0 commit comments

Comments
 (0)