[PATCH] libata-acpi: Try and stop all the non PCI devices crashing
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 8 Mar 2007 23:13:50 +0000 (23:13 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 8 Mar 2007 22:19:13 +0000 (14:19 -0800)
commitca4266359d0c1199af088447f209ab5bcc32a989
tree36aebe45c36f23d3cc257d3f76193467e02a6f45
parent908e0a8a265fe8057604a9a30aec3f0be7bb5ebb
[PATCH] libata-acpi: Try and stop all the non PCI devices crashing

For 2.6.20 it mostly used to just not work, for 2.6.21-rc it crashes, this
seems to be down to luck (bad or good). The libata-acpi code needs to
avoid doing PCI work on non-PCI devices. This is one hack although it's
not pretty and perhaps there is a "right" way to check if a struct device
* is PCI ?

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/ata/libata-acpi.c