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.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index 18d539837045..78d6ae0b90c4 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -22,6 +22,8 @@
22#include <linux/ahci_platform.h> 22#include <linux/ahci_platform.h>
23#include "ahci.h" 23#include "ahci.h"
24 24
25#define DRV_NAME "ahci"
26
25static const struct ata_port_info ahci_port_info = { 27static const struct ata_port_info ahci_port_info = {
26 .flags = AHCI_FLAG_COMMON, 28 .flags = AHCI_FLAG_COMMON,
27 .pio_mask = ATA_PIO4, 29 .pio_mask = ATA_PIO4,
@@ -29,6 +31,10 @@ static const struct ata_port_info ahci_port_info = {
29 .port_ops = &ahci_platform_ops, 31 .port_ops = &ahci_platform_ops,
30}; 32};
31 33
34static struct scsi_host_template ahci_platform_sht = {
35 AHCI_SHT(DRV_NAME),
36};
37
32static int ahci_probe(struct platform_device *pdev) 38static int ahci_probe(struct platform_device *pdev)
33{ 39{
34 struct device *dev = &pdev->dev; 40 struct device *dev = &pdev->dev;
@@ -46,7 +52,8 @@ static int ahci_probe(struct platform_device *pdev)
46 if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) 52 if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci"))
47 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; 53 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;
48 54
49 rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info); 55 rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info,
56 &ahci_platform_sht);
50 if (rc) 57 if (rc)
51 goto disable_resources; 58 goto disable_resources;
52 59
@@ -75,7 +82,7 @@ static struct platform_driver ahci_driver = {
75 .probe = ahci_probe, 82 .probe = ahci_probe,
76 .remove = ata_platform_remove_one, 83 .remove = ata_platform_remove_one,
77 .driver = { 84 .driver = {
78 .name = "ahci", 85 .name = DRV_NAME,
79 .of_match_table = ahci_of_match, 86 .of_match_table = ahci_of_match,
80 .pm = &ahci_pm_ops, 87 .pm = &ahci_pm_ops,
81 }, 88 },