[MCA] fix bus matching
commitb53bff31b95ef18d7568b805d459eb28b32767ee
authorJames Bottomley <James.Bottomley@SteelEye.com>
Sat, 11 Aug 2007 22:03:39 +0000 (12 00:03 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 11 Aug 2007 22:03:39 +0000 (12 00:03 +0200)
treed1c4629e6e239c1f51528ca1b18289a7884ec9b2
parent5a848956b65ee5ca64fb7496a6b8135e07901499
[MCA] fix bus matching

There's a bug in the MCA bus matching algorithm in that it promotes from
signed short to int before comparing with the actual id and does sign
extension on anything > 0x7fff (which means that pos ids > 0x7fff never
get correctly matched).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/mca/mca-bus.c