Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfff1f4a authored by Wei Yongjun's avatar Wei Yongjun Committed by Wolfram Sang
Browse files

i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()



Fix to return a negative error code from the bus speed parse
error handling case instead of 0.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarTim Kryger <tim.kryger@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 5e47eec0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -792,7 +792,8 @@ static int bcm_kona_i2c_probe(struct platform_device *pdev)
	}

	/* Parse bus speed */
	if (bcm_kona_i2c_assign_bus_speed(dev))
	rc = bcm_kona_i2c_assign_bus_speed(dev);
	if (rc)
		goto probe_disable_clk;

	/* Enable internal clocks */