of: match by compatible property first
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 14 Jun 2012 07:12:35 +0000 (09:12 +0200)
committerRob Herring <rob.herring@calxeda.com>
Fri, 15 Jun 2012 01:29:40 +0000 (20:29 -0500)
commit107a84e61cdd3406c842a0e4be7efffd3a05dba6
treeac901b609ccb98aab22b28f51a1d2639ffd60545
parentd44115f28edba06d0844ab4b79682f48500020f6
of: match by compatible property first

When matching devices against an OF device ID table, the first string of
the compatible property that is listed in the table should match,
regardless of its position in the table.

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/base.c