]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sprd: Validate the return value of clock initialization
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 25 Jul 2019 07:56:18 +0000 (15:56 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 6 Aug 2019 20:54:23 +0000 (22:54 +0200)
commit3f376e88b49787ef8c70f6713cfe36d4bac999c0
treea65a33aa601a5aa6770861e6e3ccba90b1c53071
parent94ec7122000ac323fac73a70372f6e03a6c16986
i2c: sprd: Validate the return value of clock initialization

The 'enable' clock of I2C master is required, we should return an error
if failed to get the 'enable' clock, to make sure the I2C driver can be
defer probe if the clock resource is not ready.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sprd.c