i2c: uniphier_f: error out if clock rate is zero
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 30 Nov 2015 09:53:35 +0000 (18:53 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 14 Dec 2015 09:59:26 +0000 (10:59 +0100)
commitac9b91f39d86f04eeacfccb6b6113b1ffa001ec1
treee508b40e2986bfb1e5a470d8a58d3eaa9198beff
parent2d5d23b96a4a660d0d04455150570c6257d4ce25
i2c: uniphier_f: 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-f.c