From: Russell King Date: Sat, 24 Jan 2009 10:14:37 +0000 (+0000) Subject: [ARM] clkdev: fix clock matching X-Git-Tag: v2.6.29-rc3~20^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409dc360b49480b57869ffd457e4b95901b76b75;p=pandora-kernel.git [ARM] clkdev: fix clock matching The old matching algorithm was too fuzzy, causing false positives. For example, when asked for device D connection C1 and we only find device D connection C2, we return that as a valid match despite the connection names being different. Change the algorithm such that: An entry with a NULL ID is assumed to be a wildcard. If an entry has a device ID, it must match If an entry has a connection ID, it must match However, we maintain the order of precidence while still only doing a single pass over all entries: dev+con > dev only > con only. Signed-off-by: Russell King --- Reading git-diff-tree failed