diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index b0e5ac372a32..06ad2fa3fa4c 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -698,7 +698,7 @@ static int sas_discover_sata_dev(struct domain_device *dev) | |||
698 | /* incomplete response */ | 698 | /* incomplete response */ |
699 | SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to " | 699 | SAS_DPRINTK("sending SET FEATURE/PUP_STBY_SPIN_UP to " |
700 | "dev %llx\n", SAS_ADDR(dev->sas_addr)); | 700 | "dev %llx\n", SAS_ADDR(dev->sas_addr)); |
701 | if (!le16_to_cpu(identify_x[83] & (1<<6))) | 701 | if (!(identify_x[83] & cpu_to_le16(1<<6))) |
702 | goto cont1; | 702 | goto cont1; |
703 | res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES, | 703 | res = sas_issue_ata_cmd(dev, ATA_SET_FEATURES, |
704 | ATA_FEATURE_PUP_STBY_SPIN_UP, | 704 | ATA_FEATURE_PUP_STBY_SPIN_UP, |