Commit b6911780b5b494bc2a455039082990c960190ddc

Authored by Michal Simek
1 parent 1471fadf69

mmc: zynq: Fix tuning_loop_counter type in arasan_sdhci_execute_tuning()

Code around tuning_loop_counter variable expects to go below zero.
That's why this variable can't use unsigned type.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mmc/zynq_sdhci.c
... ... @@ -92,7 +92,7 @@
92 92 u32 ctrl;
93 93 struct sdhci_host *host;
94 94 struct arasan_sdhci_priv *priv = dev_get_priv(mmc->dev);
95   - u8 tuning_loop_counter = SDHCI_TUNING_LOOP_COUNT;
  95 + char tuning_loop_counter = SDHCI_TUNING_LOOP_COUNT;
96 96 u8 deviceid;
97 97  
98 98 debug("%s\n", __func__);