From: Geert Uytterhoeven Date: Wed, 7 Jan 2015 15:37:25 +0000 (+0100) Subject: spi: sh-msiof: Use async pm_runtime_put() in sh_msiof_spi_setup() X-Git-Tag: v4.0-rc1~167^2~6^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8935ef0f2a8e8c5c440c62fb194d40c4415f456;p=karo-tx-linux.git spi: sh-msiof: Use async pm_runtime_put() in sh_msiof_spi_setup() There's no need to use the synchronous version. Reported-by: Sergei Shtylyov Signed-off-by: Geert Uytterhoeven Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index c58c2494a297..9a884e6dc30c 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -546,7 +546,7 @@ static int sh_msiof_spi_setup(struct spi_device *spi) gpio_set_value(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); - pm_runtime_put_sync(&p->pdev->dev); + pm_runtime_put(&p->pdev->dev); return 0; }