[PATCH] mci: atmel-sdhci: FIx compiler warning
Sascha Hauer
s.hauer at pengutronix.de
Tue May 11 22:51:37 PDT 2021
gck_rate is tested for negative values. Use a signed type to let this
work as expected.
Signed-off-by: Sascha Hauer <s.hauer at 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
More information about the barebox
mailing list