diff options
author | Tobias Jordan <Tobias.Jordan@elektrobit.com> | 2018-04-30 17:49:29 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-05-09 00:13:19 +0300 |
commit | e6faa71034f6d0692a3a20d6b55565a36b6b8156 (patch) | |
tree | d61e410156a52fb895a278ef422ca67887e0c284 /drivers/i2c/busses/i2c-nomadik.c | |
parent | b1437dcb973de79d1f9bca55c6056e8b40ff7ba7 (diff) | |
download | linux-e6faa71034f6d0692a3a20d6b55565a36b6b8156.tar.xz |
i2c: axxia: enable clock before calling clk_get_rate()
axxia_i2c_init() uses clk_get_rate() for idev->i2c_clk. clk_get_rate()
should only be called if the clock is enabled, so ensure that by moving
the clk_prepare_enable() call before the call to axxia_i2c_init().
Found by Linux Driver Verification project (linuxtesting.org).
Fixes: 08678b850cd0 ("i2c: axxia: Add I2C driver for AXM55xx")
Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-nomadik.c')
0 files changed, 0 insertions, 0 deletions