]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: jz4780: 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>
Thu, 7 Apr 2016 19:13:38 +0000 (21:13 +0200)
commitd3b560e94783e0b14f53c7368483d11382894f9e
treec8c875b5fb873558bd281632523fcc0eb3a7a487
parent0f9a6698030cdb784735e5a09f9bf9d54d4e6827
i2c: jz4780: prevent potential division by zero

Make sure we don't OOPS in case clock-frequency is set to 0 in a DT. The
variable set here is later used as a divisor.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-jz4780.c