SCSI: convert struct class_device to struct device
[firefly-linux-kernel-4.4.55.git] / drivers / ata / ahci.c
index 739ba3f222e851407cd97dcc2ed52ac509e32edc..986e3324e3026230bee39dbf9b0001fe23c15c64 100644 (file)
@@ -273,8 +273,8 @@ static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg);
 static int ahci_pci_device_resume(struct pci_dev *pdev);
 #endif
 
-static struct class_device_attribute *ahci_shost_attrs[] = {
-       &class_device_attr_link_power_management_policy,
+static struct device_attribute *ahci_shost_attrs[] = {
+       &dev_attr_link_power_management_policy,
        NULL
 };