aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci_platform.c')
-rw-r--r--drivers/ata/ahci_platform.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index b10d81ddb528..fb3eca5cd66c 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -34,7 +34,6 @@ static int ahci_probe(struct platform_device *pdev)
34 struct device *dev = &pdev->dev; 34 struct device *dev = &pdev->dev;
35 struct ahci_platform_data *pdata = dev_get_platdata(dev); 35 struct ahci_platform_data *pdata = dev_get_platdata(dev);
36 struct ahci_host_priv *hpriv; 36 struct ahci_host_priv *hpriv;
37 unsigned long hflags = 0;
38 int rc; 37 int rc;
39 38
40 hpriv = ahci_platform_get_resources(pdev); 39 hpriv = ahci_platform_get_resources(pdev);
@@ -58,10 +57,9 @@ static int ahci_probe(struct platform_device *pdev)
58 } 57 }
59 58
60 if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) 59 if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci"))
61 hflags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; 60 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;
62 61
63 rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, 62 rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info);
64 hflags, 0, 0);
65 if (rc) 63 if (rc)
66 goto pdata_exit; 64 goto pdata_exit;
67 65