]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 18 Nov 2013 13:03:08 +0000 (21:03 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 18 Nov 2013 19:26:23 +0000 (20:26 +0100)
Fix to return a negative error code from the bus speed parse
error handling case instead of 0.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-bcm-kona.c

index 7b7b7622b0d1d27308635824afff578e6a07fc11..eb1ce6e4523a291bb8a808379556780c9e666725 100644 (file)
@@ -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 */