From: Jeff Garzik Date: Wed, 7 Feb 2007 02:08:14 +0000 (-0500) Subject: libata: build fix after dmesg probe output changes X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=591a6e8ee7c8ffbbeaf23fec23796c0cfa316a41;p=linux-beck.git libata: build fix after dmesg probe output changes Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 479f95a5c0a3..25d8d3f778a1 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -1597,10 +1597,10 @@ int ata_dev_configure(struct ata_device *dev) dev->n_sectors = ata_id_n_sectors(id); /* SCSI only uses 4-char revisions, dump full 8 chars from ATA */ - ata_id_c_string(dev->id, fwrevbuf, ATA_ID_FW_REV_OFS, + ata_id_c_string(dev->id, fwrevbuf, ATA_ID_FW_REV, sizeof(fwrevbuf)); - ata_id_c_string(dev->id, modelbuf, ATA_ID_PROD_OFS, + ata_id_c_string(dev->id, modelbuf, ATA_ID_PROD, sizeof(modelbuf)); if (dev->id[59] & 0x100)