summaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-06-07 10:14:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-08 22:12:05 -0700
commita547a7ac4c0739fecfcceb837f62a7b67eca49f5 (patch)
tree2d0051b09b92f43f48f6fed9b6b8f5db326c348a /drivers/staging/tidspbridge
parent4b80e971a8685ffda26181ba6b8c5de226a39a7c (diff)
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/tidspbridge')
-rw-r--r--drivers/staging/tidspbridge/rmgr/drv_interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c
index df0f37ea1ee..9c020562c84 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;
}