|
@@ -74,7 +74,8 @@ static int artop6260_pre_reset(struct ata_link *link, unsigned long deadline)
|
|
|
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
|
|
|
|
|
/* Odd numbered device ids are the units with enable bits (the -R cards) */
|
|
|
- if (pdev->device % 1 && !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no]))
|
|
|
+ if ((pdev->device & 1) &&
|
|
|
+ !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no]))
|
|
|
return -ENOENT;
|
|
|
|
|
|
return ata_sff_prereset(link, deadline);
|