diff options
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r-- | drivers/ata/pata_scc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index 2d048ef25a5a..aab068fbb7bc 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -785,7 +785,7 @@ static u8 scc_bmdma_status (struct ata_port *ap) | |||
785 | static void scc_data_xfer (struct ata_device *adev, unsigned char *buf, | 785 | static void scc_data_xfer (struct ata_device *adev, unsigned char *buf, |
786 | unsigned int buflen, int write_data) | 786 | unsigned int buflen, int write_data) |
787 | { | 787 | { |
788 | struct ata_port *ap = adev->ap; | 788 | struct ata_port *ap = adev->link->ap; |
789 | unsigned int words = buflen >> 1; | 789 | unsigned int words = buflen >> 1; |
790 | unsigned int i; | 790 | unsigned int i; |
791 | u16 *buf16 = (u16 *) buf; | 791 | u16 *buf16 = (u16 *) buf; |