]> git.baikalelectronics.ru Git - kernel.git/commit
ide: make ide_pci_check_iomem() actually work
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 26 Apr 2008 15:36:31 +0000 (17:36 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:31 +0000 (17:36 +0200)
commit03d4c9c9c1fd74a3c84cb4b8b668deb52edc01e6
treebae9585842faf07f8c5f05f19df43a0d79241f51
parent2da97743819824414f3ad7bcd56489fc33455442
ide: make ide_pci_check_iomem() actually work

This function didn't actually check if a given BAR is in I/O space because of
using the bogus PCI_BASE_ADDRESS_IO_MASK (which equals ~3) to test the resource
flags instead of IORESOURCE_IO -- fix this, make ide_hwif_configure() check the
results failing if necessary, and move the printk() call to the failure path.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/setup-pci.c