From: Wei Yongjun Date: Fri, 7 Jun 2013 02:14:27 +0000 (+0800) Subject: staging: tidspbridge: fix error return code in omap34_xx_bridge_probe() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a547a7ac4c0739fecfcceb837f62a7b67eca49f5;p=linux-beck.git staging: tidspbridge: fix error return code in omap34_xx_bridge_probe() Fix to return a negative error code in the class_create() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index df0f37ea1ee5..9c020562c846 100644 --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c @@ -508,6 +508,7 @@ static int omap34_xx_bridge_probe(struct platform_device *pdev) bridge_class = class_create(THIS_MODULE, "ti_bridge"); if (IS_ERR(bridge_class)) { pr_err("%s: Error creating bridge class\n", __func__); + err = PTR_ERR(bridge_class); goto err3; }