Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88df5217 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Add check before calling device_remove_file"

parents 34c344e9 378d03f4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9708,6 +9708,8 @@ static void __ufshcd_shutdown_clkscaling(struct ufs_hba *hba)

static void ufshcd_shutdown_clkscaling(struct ufs_hba *hba)
{
	if (!ufshcd_is_clkscaling_supported(hba))
		return;
	__ufshcd_shutdown_clkscaling(hba);
	device_remove_file(hba->dev, &hba->clk_scaling.enable_attr);
}