i2c: jz4780: really prevent potential division by zero
authorWolfram Sang <wsa@the-dreams.de>
Sun, 3 Apr 2016 21:32:00 +0000 (23:32 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 9 Apr 2016 06:36:44 +0000 (08:36 +0200)
commitcaf280800aaf73f0796d1bb3fa0f6576c8222258
tree19e022711c6b8b2fc3b67ed87ab4676a2bd3e291
parent4ececb7d173f17c60c00e704a0e4e51cdf788e04
i2c: jz4780: really prevent potential division by zero

Make sure we avoid a division-by-zero OOPS in case clock-frequency is
set too low in DT. Add missing '\n' while we are here.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Axel Lin <axel.lin@ingics.com>
drivers/i2c/busses/i2c-jz4780.c