i2c: uniphier: error out if clock rate is zero
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 30 Nov 2015 09:53:33 +0000 (18:53 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Dec 2015 09:58:44 +0000 (10:58 +0100)
commit1ff49b34bfd1261277d2c97ec48efb067b87f5e5
treeab2dfb0ac4706371703e1c9fe2d2b85135eec213
parentca68eade666a6ad7e954cc8c1af07ce477726087
i2c: uniphier: error out if clock rate is zero

This input clock is used to generate the sampling clock for I2C bus.
If the clock rate is zero, there is something wrong with the clock
driver.  Bail out with the appropriate error message in such a case.
It would make it easier to find the root cause of failure.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier.c