ARM64: dts: rk3399-mid-818: enable hdmi on vopl
[firefly-linux-kernel-4.4.55.git] / scripts / mod / file2alias.c
index 5b96206e9aab833f9a666bc7cf52d57662929b3d..9f5cdd49ff0ba9ef470b97aa0e967c7a66bacfd1 100644 (file)
@@ -695,7 +695,7 @@ static int do_of_entry (const char *filename, void *symval, char *alias)
        len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*",
                      (*type)[0] ? *type : "*");
 
-       if (compatible[0])
+       if ((*compatible)[0])
                sprintf(&alias[len], "%sC%s", (*type)[0] ? "*" : "",
                        *compatible);