From: Sylvain Munaut Date: Tue, 8 May 2007 09:59:29 +0000 (+1000) Subject: powerpc: Fix the MODALIAS generation in modpost for of devices X-Git-Tag: v2.6.22-rc3~109^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1ab423502e787e264b4797a5fa200d804c4fd63;p=pandora-kernel.git powerpc: Fix the MODALIAS generation in modpost for of devices Since the devices may have multiple (or none) compatible properties, the uevent generated internally by the kernel may have multiple "C..." entries. So the MODALIAS stored in the module must have wilcard before and after the compatible entry. Also, if the 'compatible' field is not used for matching, there will be no 'C' and that must handled as well. The previous code handled all those case incorrectly and it "mostly" worked ... but not always. Signed-off-by: Sylvain Munaut Signed-off-by: Paul Mackerras Signed-off-by: Sam Ravnborg --- Reading git-diff-tree failed