touchscreen: fix the invalid return value 13/55913/1 accepted/tizen/ivi/20160218.022904 accepted/tizen/mobile/20151230.120416 accepted/tizen/tv/20151230.120434 accepted/tizen/wearable/20151230.120504 submit/tizen/20151230.082551 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001
authorTaeyoung Kim <ty317.kim@samsung.com>
Wed, 30 Dec 2015 07:01:13 +0000 (16:01 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Wed, 30 Dec 2015 07:01:13 +0000 (16:01 +0900)
Change-Id: I486d17b96cf539f78d379c048cfa4f9cd12a4370
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
hw/touchscreen/touchscreen.c

index b25ada5688e0be32fdedce91d91c682cd73a1b8c..1d5be64da239820c286c639082d5ca82ddc8b31e 100644 (file)
@@ -47,7 +47,7 @@ static int touchscreen_probe(void)
 
        d = opendir(INPUT_PATH);
        if (!d)
-               return NULL;
+               return -errno;
 
        while (readdir_r(d, &entry, &dir) == 0 && dir != NULL) {
                if (dir->d_name[0] == '.')