mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: Wei Yongjun <[email protected]> Reviewed-by: Tim Kryger <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
5e47eec004
commit
cfff1f4a93
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue