* [PATCH] mci: atmel-sdhci: FIx compiler warning
@ 2021-05-12 5:51 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2021-05-12 5:51 UTC (permalink / raw)
To: Barebox List
gck_rate is tested for negative values. Use a signed type to let this
work as expected.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-12 5:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 5:51 [PATCH] mci: atmel-sdhci: FIx compiler warning Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox