]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix the MODALIAS generation in modpost for of devices
authorSylvain Munaut <tnt@246tNt.com>
Tue, 8 May 2007 09:59:29 +0000 (19:59 +1000)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 19 May 2007 07:10:10 +0000 (09:10 +0200)
commit8036a9163abdae55723d8cbc5f0c210e96a3334a
tree6393a3b2a3c985b79acf29549acba3aea468759a
parent5579fa2e7b75eee7ea989bfa301b5fa9dc204a58
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 <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/file2alias.c