]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/pci/serverworks.c
ide: make drive->id an union (take 2)
[linux-2.6-omap-h63xx.git] / drivers / ide / pci / serverworks.c
index c3bdc6e51a4896045f1561a5883a3fd39738e0ea..ded6a13fd40604c9267f61870a77ce51fe316768 100644 (file)
@@ -57,8 +57,10 @@ static struct pci_dev *isa_dev;
 
 static int check_in_drive_lists (ide_drive_t *drive, const char **list)
 {
+       char *m = (char *)&drive->id[ATA_ID_PROD];
+
        while (*list)
-               if (!strcmp(*list++, drive->id->model))
+               if (!strcmp(*list++, m))
                        return 1;
        return 0;
 }