Commit 64f580d
committed
mmc: sdhci-of-at91: avoid division by zero
Avoid division by zero and setting invalid values to address pointed
by SDHCI_PRESET_FOR_SDR104.
Fixes: bac9f2f ("mmc: sdhci-of-at91: add preset for HS400 mode")
Fixes: d85a069 ("mmc: sdhci-of-at91: add compatible to sama7g5 SoC")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>1 parent 2481801 commit 64f580d
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
312 | 315 | | |
313 | 316 | | |
314 | 317 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
| |||
0 commit comments