On Mon, Nov 18, 2013 at 5:03 AM, Wei Yongjun <[email protected]> wrote: > From: Wei Yongjun <[email protected]> > > 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]> > --- > drivers/i2c/busses/i2c-bcm-kona.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-bcm-kona.c > b/drivers/i2c/busses/i2c-bcm-kona.c > index 865e5dd..036cf03 100644 > --- a/drivers/i2c/busses/i2c-bcm-kona.c > +++ b/drivers/i2c/busses/i2c-bcm-kona.c > @@ -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 */ >
Looks good. Thanks. Reviewed-by: Tim Kryger <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
