[PATCH 2/2] of: reimplement the matching method for __of_match_node()

2014-02-18 Thread Kevin Hao
In the current implementation of __of_match_node(), it will compare each given match entry against all the node's compatible strings with of_device_is_compatible(). To achieve multiple compatible strings per node with ordering from specific to generic, this requires given matches to be ordered

Re: [PATCH 2/2] of: reimplement the matching method for __of_match_node()

2014-02-18 Thread Grant Likely
On Tue, 18 Feb 2014 15:57:30 +0800, Kevin Hao haoke...@gmail.com wrote: In the current implementation of __of_match_node(), it will compare each given match entry against all the node's compatible strings with of_device_is_compatible(). To achieve multiple compatible strings per node with

Re: [PATCH 2/2] of: reimplement the matching method for __of_match_node()

2014-02-18 Thread Kevin Hao
On Tue, Feb 18, 2014 at 10:29:18PM +, Grant Likely wrote: On Tue, 18 Feb 2014 15:57:30 +0800, Kevin Hao haoke...@gmail.com wrote: In the current implementation of __of_match_node(), it will compare each given match entry against all the node's compatible strings with