]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitcec126913a40156dc7f787e150a2b8c32b3a9b0c
tree36aebe45c36f23d3cc257d3f76193467e02a6f45
parentf1a7074b32042746f0976593683161677ad58767
[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