diff options
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/pci/pdc202xx_new.c | 2 | ||||
-rw-r--r-- | drivers/ide/ppc/pmac.c | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index 2da5cbb53566..2cdd629c653d 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -395,7 +395,7 @@ static void __devinit apple_kiwi_init(struct pci_dev *pdev) | |||
395 | unsigned int class_rev = 0; | 395 | unsigned int class_rev = 0; |
396 | u8 conf; | 396 | u8 conf; |
397 | 397 | ||
398 | if (np == NULL || !device_is_compatible(np, "kiwi-root")) | 398 | if (np == NULL || !of_device_is_compatible(np, "kiwi-root")) |
399 | return; | 399 | return; |
400 | 400 | ||
401 | pci_read_config_dword(pdev, PCI_CLASS_REVISION, &class_rev); | 401 | pci_read_config_dword(pdev, PCI_CLASS_REVISION, &class_rev); |
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 071a030ec26e..a49ebe44babd 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -1157,32 +1157,32 @@ pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
1157 | 1157 | ||
1158 | pmif->cable_80 = 0; | 1158 | pmif->cable_80 = 0; |
1159 | pmif->broken_dma = pmif->broken_dma_warn = 0; | 1159 | pmif->broken_dma = pmif->broken_dma_warn = 0; |
1160 | if (device_is_compatible(np, "shasta-ata")) | 1160 | if (of_device_is_compatible(np, "shasta-ata")) |
1161 | pmif->kind = controller_sh_ata6; | 1161 | pmif->kind = controller_sh_ata6; |
1162 | else if (device_is_compatible(np, "kauai-ata")) | 1162 | else if (of_device_is_compatible(np, "kauai-ata")) |
1163 | pmif->kind = controller_un_ata6; | 1163 | pmif->kind = controller_un_ata6; |
1164 | else if (device_is_compatible(np, "K2-UATA")) | 1164 | else if (of_device_is_compatible(np, "K2-UATA")) |
1165 | pmif->kind = controller_k2_ata6; | 1165 | pmif->kind = controller_k2_ata6; |
1166 | else if (device_is_compatible(np, "keylargo-ata")) { | 1166 | else if (of_device_is_compatible(np, "keylargo-ata")) { |
1167 | if (strcmp(np->name, "ata-4") == 0) | 1167 | if (strcmp(np->name, "ata-4") == 0) |
1168 | pmif->kind = controller_kl_ata4; | 1168 | pmif->kind = controller_kl_ata4; |
1169 | else | 1169 | else |
1170 | pmif->kind = controller_kl_ata3; | 1170 | pmif->kind = controller_kl_ata3; |
1171 | } else if (device_is_compatible(np, "heathrow-ata")) | 1171 | } else if (of_device_is_compatible(np, "heathrow-ata")) |
1172 | pmif->kind = controller_heathrow; | 1172 | pmif->kind = controller_heathrow; |
1173 | else { | 1173 | else { |
1174 | pmif->kind = controller_ohare; | 1174 | pmif->kind = controller_ohare; |
1175 | pmif->broken_dma = 1; | 1175 | pmif->broken_dma = 1; |
1176 | } | 1176 | } |
1177 | 1177 | ||
1178 | bidp = get_property(np, "AAPL,bus-id", NULL); | 1178 | bidp = of_get_property(np, "AAPL,bus-id", NULL); |
1179 | pmif->aapl_bus_id = bidp ? *bidp : 0; | 1179 | pmif->aapl_bus_id = bidp ? *bidp : 0; |
1180 | 1180 | ||
1181 | /* Get cable type from device-tree */ | 1181 | /* Get cable type from device-tree */ |
1182 | if (pmif->kind == controller_kl_ata4 || pmif->kind == controller_un_ata6 | 1182 | if (pmif->kind == controller_kl_ata4 || pmif->kind == controller_un_ata6 |
1183 | || pmif->kind == controller_k2_ata6 | 1183 | || pmif->kind == controller_k2_ata6 |
1184 | || pmif->kind == controller_sh_ata6) { | 1184 | || pmif->kind == controller_sh_ata6) { |
1185 | const char* cable = get_property(np, "cable-type", NULL); | 1185 | const char* cable = of_get_property(np, "cable-type", NULL); |
1186 | if (cable && !strncmp(cable, "80-", 3)) | 1186 | if (cable && !strncmp(cable, "80-", 3)) |
1187 | pmif->cable_80 = 1; | 1187 | pmif->cable_80 = 1; |
1188 | } | 1188 | } |
@@ -1190,8 +1190,8 @@ pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
1190 | * they have a 80 conductor cable, this seem to be always the case unless | 1190 | * they have a 80 conductor cable, this seem to be always the case unless |
1191 | * the user mucked around | 1191 | * the user mucked around |
1192 | */ | 1192 | */ |
1193 | if (device_is_compatible(np, "K2-UATA") || | 1193 | if (of_device_is_compatible(np, "K2-UATA") || |
1194 | device_is_compatible(np, "shasta-ata")) | 1194 | of_device_is_compatible(np, "shasta-ata")) |
1195 | pmif->cable_80 = 1; | 1195 | pmif->cable_80 = 1; |
1196 | 1196 | ||
1197 | /* On Kauai-type controllers, we make sure the FCR is correct */ | 1197 | /* On Kauai-type controllers, we make sure the FCR is correct */ |