Commits
Clark Wang committed e8b8f8761f6
MLK-20368 i2c-imx: Coverity: fix divide by zero warning "i2c_clk_rate / 2" might be zero when the i2c_clk_rate gets the clock is 0 or 1, so add a judgment to avoid the denominator is equal to 0. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> [Arul: Add support to check return value everywhere in the driver] Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com> Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com> (cherry picked from commit d382de595bffc0975ab7c0582e08dd4f7afc0c1a) (cherry picked from commit 456caa9ba270ca8f4f962918a0625d1a8348f316)