]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: tidspbridge: fix error return code in omap34_xx_bridge_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Jun 2013 02:14:27 +0000 (10:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2013 05:12:05 +0000 (22:12 -0700)
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/rmgr/drv_interface.c

index df0f37ea1ee50bf765680edba66ac1292ccc4c6b..9c020562c84637ca85d8d9e5ffe768c8b7809440 100644 (file)
@@ -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;
        }