File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8711,7 +8711,6 @@ static int ufshcd_add_lus(struct ufs_hba *hba)
8711
8711
8712
8712
ufs_bsg_probe (hba );
8713
8713
scsi_scan_host (hba -> host );
8714
- pm_runtime_put_sync (hba -> dev );
8715
8714
8716
8715
out :
8717
8716
return ret ;
@@ -8980,15 +8979,15 @@ static void ufshcd_async_scan(void *data, async_cookie_t cookie)
8980
8979
8981
8980
/* Probe and add UFS logical units */
8982
8981
ret = ufshcd_add_lus (hba );
8982
+
8983
8983
out :
8984
+ pm_runtime_put_sync (hba -> dev );
8984
8985
/*
8985
8986
* If we failed to initialize the device or the device is not
8986
8987
* present, turn off the power/clocks etc.
8987
8988
*/
8988
- if (ret ) {
8989
- pm_runtime_put_sync (hba -> dev );
8989
+ if (ret )
8990
8990
ufshcd_hba_exit (hba );
8991
- }
8992
8991
}
8993
8992
8994
8993
static enum scsi_timeout_action ufshcd_eh_timed_out (struct scsi_cmnd * scmd )
You can’t perform that action at this time.
0 commit comments