On Fri, Apr 08, 2016 at 03:59:32PM +0800, Axel Lin wrote: > Current code returns 0 in probe if clk_freq is set to 0. > As a result, the probe success but the module does not work. Fix it. > > Fixes: 34cf2acdafaa ("i2c: jz4780: prevent potential division by zero") > Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx> True, thanks for the pointer! However, I think we should also check i2c->speed directly. I'll send a patch right now. Please let me know if you agree on that one.
Attachment:
signature.asc
Description: PGP signature