aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt366.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_hpt366.c')
-rw-r--r--drivers/ata/pata_hpt366.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c
index 8cf167e59dee..81deb2c3824c 100644
--- a/drivers/ata/pata_hpt366.c
+++ b/drivers/ata/pata_hpt366.c
@@ -151,12 +151,12 @@ static const char *bad_ata66_3[] = {
151 151
152static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, const char *list[]) 152static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, const char *list[])
153{ 153{
154 unsigned char model_num[40]; 154 unsigned char model_num[ATA_ID_PROD_LEN];
155 char *s; 155 char *s;
156 unsigned int len; 156 unsigned int len;
157 int i = 0; 157 int i = 0;
158 158
159 ata_id_string(dev->id, model_num, ATA_ID_PROD_OFS, sizeof(model_num)); 159 ata_id_string(dev->id, model_num, ATA_ID_PROD, sizeof(model_num));
160 s = &model_num[0]; 160 s = &model_num[0];
161 len = strnlen(s, sizeof(model_num)); 161 len = strnlen(s, sizeof(model_num));
162 162