]> err.no Git - linux-2.6/commitdiff
pata_ixp4xx: Fix up set_mode() function and display Configured for PIO info
authorAlan <alan@lxorguk.ukuu.org.uk>
Tue, 20 Feb 2007 17:45:55 +0000 (17:45 +0000)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:20 +0000 (04:58 -0500)
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_ixp4xx_cf.c

index 3222ac7b945d43637295ed8f9d349df8ce937367..bd8aaaf35d0ac9f6f5f00d421bd11014b8910dee 100644 (file)
 #include <scsi/scsi_host.h>
 
 #define DRV_NAME       "pata_ixp4xx_cf"
-#define DRV_VERSION    "0.1.1ac1"
+#define DRV_VERSION    "0.1.1ac3"
 
-static int ixp4xx_set_mode(struct ata_port *ap, struct ata_device *adev)
+static int ixp4xx_set_mode(struct ata_port *ap, struct ata_device **error)
 {
        int i;
 
        for (i = 0; i < ATA_MAX_DEVICES; i++) {
                struct ata_device *dev = &ap->device[i];
-               if (ata_dev_enabled(dev)) {
+               if (ata_dev_ready(dev)) {
+                       ata_dev_printk(dev, KERN_INFO, "configured for PIO0\n");
                        dev->pio_mode = XFER_PIO_0;
                        dev->xfer_mode = XFER_PIO_0;
                        dev->xfer_shift = ATA_SHIFT_PIO;