summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-07-27 14:23:48 +0800
committerLiu Ying <b17645@freescale.com>2010-07-27 16:30:10 +0800
commit760bc1c44688468054cf19b77ea2869574e9baed (patch)
tree9cbdd480b5b8ecc364f80c220663d57192b5684c
parent0927b9f3e2d70e67ad4efe965ad9ff72e266ec65 (diff)
ENGR00125608-1 TVE:Return error when TVE probe fails
This patch avoids TVE custom suspend/resume functions to be called. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit ec197f61d6dcc21393ab8ea3ffc5fe071914ccf2)
-rw-r--r--drivers/video/mxc/tve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/mxc/tve.c b/drivers/video/mxc/tve.c
index bc2f022bbaff..b1982f868e8c 100644
--- a/drivers/video/mxc/tve.c
+++ b/drivers/video/mxc/tve.c
@@ -679,7 +679,7 @@ static int tve_probe(struct platform_device *pdev)
u32 conf_reg;
if (g_enable_tve == false)
- return 0;
+ return -ENODEV;
INIT_LIST_HEAD(&tve_modelist.list);