scsi: ufs: Refactor cancelling clkscaling works
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 20 Jan 2021 15:01:40 +0000 (23:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Jan 2021 03:29:37 +0000 (22:29 -0500)
commitf9a7fa345aec28bc1c15a55572e016bbeb5f4254
tree5b548c606bf8fc48cf168fea50e3ae60e18494cc
parentb02d51afca002a0cd29a22200a2ed81c5e1f58de
scsi: ufs: Refactor cancelling clkscaling works

Cancelling suspend_work and resume_work is only required while suspending
clk-scaling. Move these two invocations into ufshcd_suspend_clkscaling()
function.

Link: https://lore.kernel.org/r/20210120150142.5049-2-stanley.chu@mediatek.com
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c