touchscreen: fix invalid return value
authorTaeyoung Kim <ty317.kim@samsung.com>
Sun, 17 Apr 2016 23:58:30 +0000 (08:58 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Sun, 17 Apr 2016 23:58:30 +0000 (08:58 +0900)
Change-Id: Ib8ed2eae31293181b6be2aa6161944f919a48be4
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
hw/touchscreen/touchscreen.c

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