scsi: ufs: ti-j721e-ufs: Fix unwinding of pm_runtime changes
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 26 May 2020 10:03:40 +0000 (15:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:57 +0000 (17:48 +0200)
commitca46bd432f1cd13718a42b26859990ffd46559c1
tree22ee50b7519535d1adcb5ad97de84bd745f97105
parent7fdbc547624b85497b1da5fd61577afd0874b5ab
scsi: ufs: ti-j721e-ufs: Fix unwinding of pm_runtime changes

[ Upstream commit 22617e21633142dd2b81541cb3b95d6fb59aa85f ]

Fix unwinding of pm_runtime changes when bailing out of driver probe due to
a failure and also on removal of driver.

Link: https://lore.kernel.org/r/20200526100340.15032-1-vigneshr@ti.com
Fixes: 6979e56cec97 ("scsi: ufs: Add driver for TI wrapper for Cadence UFS IP")
Reported-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ti-j721e-ufs.c