summaryrefslogtreecommitdiff
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:30:30 +0800
commit71a720f2f78effa6000355d03f2c346b8c52a44a (patch)
tree4c2c443b774db5685be34e91a29ab883755df6fd
parent760bc1c44688468054cf19b77ea2869574e9baed (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> (cherry picked from commit d48bd2e1d1ecc166bdb23e2c2a60dd2e6ae0e772)
-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);