i2c: uniphier: error out if bus speed is zero
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 30 Nov 2015 09:53:34 +0000 (18:53 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Dec 2015 09:59:05 +0000 (10:59 +0100)
commit2d5d23b96a4a660d0d04455150570c6257d4ce25
treeb5b2517431452c05dd47f5be026f9ce030ce41bf
parent1ff49b34bfd1261277d2c97ec48efb067b87f5e5
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>
drivers/i2c/busses/i2c-uniphier.c