diff options
Diffstat (limited to 'drivers/ata/ata_generic.c')
-rw-r--r-- | drivers/ata/ata_generic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c index 44328a16075c..e390ad47c8ef 100644 --- a/drivers/ata/ata_generic.c +++ b/drivers/ata/ata_generic.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | /** | 35 | /** |
36 | * generic_set_mode - mode setting | 36 | * generic_set_mode - mode setting |
37 | * @ap: interface to set up | 37 | * @link: link to set up |
38 | * @unused: returned device on error | 38 | * @unused: returned device on error |
39 | * | 39 | * |
40 | * Use a non standard set_mode function. We don't want to be tuned. | 40 | * Use a non standard set_mode function. We don't want to be tuned. |
@@ -43,8 +43,9 @@ | |||
43 | * and respect them. | 43 | * and respect them. |
44 | */ | 44 | */ |
45 | 45 | ||
46 | static int generic_set_mode(struct ata_port *ap, struct ata_device **unused) | 46 | static int generic_set_mode(struct ata_link *link, struct ata_device **unused) |
47 | { | 47 | { |
48 | struct ata_port *ap = link->ap; | ||
48 | int dma_enabled = 0; | 49 | int dma_enabled = 0; |
49 | struct ata_device *dev; | 50 | struct ata_device *dev; |
50 | 51 | ||
@@ -52,7 +53,7 @@ static int generic_set_mode(struct ata_port *ap, struct ata_device **unused) | |||
52 | if (ap->ioaddr.bmdma_addr) | 53 | if (ap->ioaddr.bmdma_addr) |
53 | dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); | 54 | dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); |
54 | 55 | ||
55 | ata_link_for_each_dev(dev, &ap->link) { | 56 | ata_link_for_each_dev(dev, link) { |
56 | if (ata_dev_enabled(dev)) { | 57 | if (ata_dev_enabled(dev)) { |
57 | /* We don't really care */ | 58 | /* We don't really care */ |
58 | dev->pio_mode = XFER_PIO_0; | 59 | dev->pio_mode = XFER_PIO_0; |