commit | 2d5d23b96a4a660d0d04455150570c6257d4ce25 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Mon Nov 30 18:53:34 2015 +0900 |
committer | Wolfram Sang <wsa@the-dreams.de> | Mon Dec 14 10:59:05 2015 +0100 |
tree | b5b2517431452c05dd47f5be026f9ce030ce41bf | |
parent | 1ff49b34bfd1261277d2c97ec48efb067b87f5e5 [diff] |
i2c: uniphier: error out if bus speed is zero There is code to divide by "bus_speed" some lines below. To eliminate the possibility of division by zero, bail out if "clock-frequency" is specified as zero. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>