commit | 86b89fd2dd780bacf4935e158c4c20098e0c3dc6 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed May 31 17:57:22 2017 -0600 |
committer | Simon Glass <sjg@chromium.org> | Fri Jun 09 13:39:33 2017 -0600 |
tree | 0b995b7d280d8c5ff7f27e36cccef94aee03b9e2 | |
parent | 8e84244092aaab94e0aa0ebf7e73c1048c02b02d [diff] |
tegra: clock: Avoid a divide-by-zero error The clock fix-up for tegra is still present in the code. It causes a divide-by-zero bug after relocation when chain-loading U-Boot from coreboot. Fix this by adding a check. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 7468676 (ARM: tegra: fix clock_get_periph_rate() for UART clocks)