[PATCH] mci: atmel-sdhci: FIx compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gck_rate is tested for negative values. Use a signed type to let this
work as expected.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 drivers/mci/atmel-sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mci/atmel-sdhci.c b/drivers/mci/atmel-sdhci.c
index 59cd002aae..380a79d33e 100644
--- a/drivers/mci/atmel-sdhci.c
+++ b/drivers/mci/atmel-sdhci.c
@@ -24,7 +24,7 @@ struct at91_sdhci_priv {
 	struct mci_host mci;
 	struct clk *hclock, *gck, *mainck;
 	bool cal_always_on;
-	u32 gck_rate;
+	int gck_rate;
 };
 
 #define to_priv(h) container_of(h, struct at91_sdhci_priv, mci)
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux