checkpatch: fix spurious vendor compatible warnings
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Thu, 3 Apr 2014 21:49:25 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:14 +0000 (16:21 -0700)
commit4fbf32a69346afc87ac1ddceb92c860d644433f9
tree0c45a905f66805770b886cb65d1ea304b5c69753
parent8f0dbfaf2715b80f491c3e23c318c4202abf89e2
checkpatch: fix spurious vendor compatible warnings

With a compatible string like

  compatible = "foo";

checkpatch will currently try to find "foo" in vendor-prefixes.txt,
which is wrong since the vendor prefix is empty in this specific case.

Skip the vendor test if the compatible is not like

  compatible = "vendor,something";

Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Cc: Joe Perches <joe@perches.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl