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

Commit 1b5e9532 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

scsi: ufs: Fix compiler warning



Fix the following compiler warning from gcc 7.4.1 with -Werror enabled:

 drivers/scsi/ufs/ufshcd.c:6773:22: error: format '%d' expects argument of type
  'int', but argument 4 has type 'long unsigned int' [-Werror=format=]
   dev_warn(hba->dev, " (%s) clk_get_rate - %d\n", __func__, freq);

Fixes: cd1b0b74 ("ufs: ufshcd: Add check for broken auto-h8 support")
Change-Id: Ic0dedbadfcd742dc5dbbcc4c131c7b08fa22e6e3
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent fa651e18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6812,7 +6812,8 @@ void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk)

	freq = clk_get_rate(refclk);
	if (freq == 0) {
		dev_warn(hba->dev, " (%s) clk_get_rate - %d\n", __func__, freq);
		dev_warn(hba->dev, " (%s) clk_get_rate - %ld\n", __func__,
			freq);
		freq = clk_round_rate(refclk, 19200000);
	}