diff options
Diffstat (limited to 'drivers/ide/pci/serverworks.c')
-rw-r--r-- | drivers/ide/pci/serverworks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/pci/serverworks.c b/drivers/ide/pci/serverworks.c index c3bdc6e51a48..ded6a13fd406 100644 --- a/drivers/ide/pci/serverworks.c +++ b/drivers/ide/pci/serverworks.c | |||
@@ -57,8 +57,10 @@ static struct pci_dev *isa_dev; | |||
57 | 57 | ||
58 | static int check_in_drive_lists (ide_drive_t *drive, const char **list) | 58 | static int check_in_drive_lists (ide_drive_t *drive, const char **list) |
59 | { | 59 | { |
60 | char *m = (char *)&drive->id[ATA_ID_PROD]; | ||
61 | |||
60 | while (*list) | 62 | while (*list) |
61 | if (!strcmp(*list++, drive->id->model)) | 63 | if (!strcmp(*list++, m)) |
62 | return 1; | 64 | return 1; |
63 | return 0; | 65 | return 0; |
64 | } | 66 | } |