]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/chrp: Fix detection of Python PCI host bridge on IBM CHRPs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 13 Oct 2008 20:14:09 +0000 (20:14 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 14 Oct 2008 23:13:30 +0000 (10:13 +1100)
commitcde496bc4354e268e0fee722e42c1a00425806a3
treedd411408f2e6895282296ea3b38ae1c1903e923a
parent004e2e12a77cc4375a5b6f7cdd99798ab251947f
powerpc/chrp: Fix detection of Python PCI host bridge on IBM CHRPs

The detection of the IBM "Python" PCI host bridge on IBM CHRP
machines such as old RS6000 was broken when we changed
of_device_is_compatible() from strncasecmp to strcasecmp (dropped
the "n" variant) due to the way IBM encodes the chip version.

We fix that by instead doing a match on the model property like
we do for others bridges in that file. It should be good enough
for those machines. If yours is still broken, let me know.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/chrp/pci.c