From 50fff2d6ff154dedbbd051d22757caf1be230ae3 Mon Sep 17 00:00:00 2001 From: Ujwal Patel Date: Tue, 21 Jul 2015 15:51:36 -0700 Subject: msm: mdss: debug: fix typo in error checking Fix a typo in error checking while creating bordercolor debugfs directory. Change-Id: I7477f41bdf31dfbd4f9763c3612ccc3f61c5657c Signed-off-by: Ujwal Patel --- drivers/video/fbdev/msm/mdss_debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_debug.c b/drivers/video/fbdev/msm/mdss_debug.c index 9b275e12bf1c..2f6a71f8c847 100644 --- a/drivers/video/fbdev/msm/mdss_debug.c +++ b/drivers/video/fbdev/msm/mdss_debug.c @@ -1099,9 +1099,9 @@ int mdss_debugfs_init(struct mdss_data_type *mdata) } mdd->bordercolor = debugfs_create_dir("bordercolor", mdd->root); - if (IS_ERR_OR_NULL(mdd->root)) { - pr_err("debugfs_create_dir for mdp failed, error %ld\n", - PTR_ERR(mdd->root)); + if (IS_ERR_OR_NULL(mdd->bordercolor)) { + pr_err("debugfs_create_dir for bordercolor failed, error %ld\n", + PTR_ERR(mdd->bordercolor)); goto err; } -- cgit v1.2.3