diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index d006e5c4768c..564c03c4ebb3 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5404,8 +5404,8 @@ void ata_dev_init(struct ata_device *dev) | |||
5404 | dev->horkage = 0; | 5404 | dev->horkage = 0; |
5405 | spin_unlock_irqrestore(ap->lock, flags); | 5405 | spin_unlock_irqrestore(ap->lock, flags); |
5406 | 5406 | ||
5407 | memset((void *)dev + ATA_DEVICE_CLEAR_OFFSET, 0, | 5407 | memset((void *)dev + ATA_DEVICE_CLEAR_BEGIN, 0, |
5408 | sizeof(*dev) - ATA_DEVICE_CLEAR_OFFSET); | 5408 | ATA_DEVICE_CLEAR_END - ATA_DEVICE_CLEAR_BEGIN); |
5409 | dev->pio_mask = UINT_MAX; | 5409 | dev->pio_mask = UINT_MAX; |
5410 | dev->mwdma_mask = UINT_MAX; | 5410 | dev->mwdma_mask = UINT_MAX; |
5411 | dev->udma_mask = UINT_MAX; | 5411 | dev->udma_mask = UINT_MAX; |