ixp4xx-ata-pci-dep-fix.patch Removes the false dependency on the PCI kernel subsystem so that the driver can be built for a kernel without PCI support. Signed-off-by: Leon Woestenberg Index: linux-2.6.18/drivers/ata/pata_ixp4xx_cf.c =================================================================== --- linux-2.6.18.orig/drivers/ata/pata_ixp4xx_cf.c 2006-11-19 12:53:24.000000000 +0100 +++ linux-2.6.18/drivers/ata/pata_ixp4xx_cf.c 2006-11-19 14:28:56.000000000 +0100 @@ -25,6 +25,11 @@ #define DRV_NAME "pata_ixp4xx_cf" #define DRV_VERSION "0.1.1" +unsigned long ixp4xx_mode_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long xfer_mask) +{ + return xfer_mask & ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); +} + static void ixp4xx_set_mode(struct ata_port *ap) { int i; @@ -122,7 +127,7 @@ static struct ata_port_operations ixp4xx_port_ops = { .set_mode = ixp4xx_set_mode, - .mode_filter = ata_pci_default_filter, + .mode_filter = ixp4xx_mode_filter, .port_disable = ata_port_disable, .tf_load = ata_tf_load,