summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-07-27 14:26:34 +0800
committerLiu Ying <b17645@freescale.com>2010-07-27 16:22:15 +0800
commitd48bd2e1d1ecc166bdb23e2c2a60dd2e6ae0e772 (patch)
tree44c116744645c70fe78af9d3bbb65e4a820164a2 /drivers
parentec197f61d6dcc21393ab8ea3ffc5fe071914ccf2 (diff)
ENGR00125608-2 LDB:Return error when LDB probe fails
This patch avoids LDB custom suspend/resume functions to be called. Signed-off-by: Liu Ying <b17645@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mxc/ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/mxc/ldb.c b/drivers/video/mxc/ldb.c
index e5cb38212adc..fe58146df3cb 100644
--- a/drivers/video/mxc/ldb.c
+++ b/drivers/video/mxc/ldb.c
@@ -784,7 +784,7 @@ static int ldb_probe(struct platform_device *pdev)
struct class *mxc_ldb_class;
if (g_enable_ldb == false)
- return 0;
+ return -ENODEV;
spin_lock_init(&ldb_lock);