|
@@ -4268,12 +4268,18 @@ static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg *vreg,
|
|
|
static inline int ufshcd_config_vreg_lpm(struct ufs_hba *hba,
|
|
static inline int ufshcd_config_vreg_lpm(struct ufs_hba *hba,
|
|
|
struct ufs_vreg *vreg)
|
|
struct ufs_vreg *vreg)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (!vreg)
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
return ufshcd_config_vreg_load(hba->dev, vreg, UFS_VREG_LPM_LOAD_UA);
|
|
return ufshcd_config_vreg_load(hba->dev, vreg, UFS_VREG_LPM_LOAD_UA);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba,
|
|
static inline int ufshcd_config_vreg_hpm(struct ufs_hba *hba,
|
|
|
struct ufs_vreg *vreg)
|
|
struct ufs_vreg *vreg)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (!vreg)
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
return ufshcd_config_vreg_load(hba->dev, vreg, vreg->max_uA);
|
|
return ufshcd_config_vreg_load(hba->dev, vreg, vreg->max_uA);
|
|
|
}
|
|
}
|
|
|
|
|
|